- Combined MPExpression and MPMutableExpression - Abstracted children of MPExpression into MPExpressionElement protocol - Abstracted most of MPExpressionLayout and MPFunctionLayout into common superclass MPLayout
31 lines
738 B
Objective-C
31 lines
738 B
Objective-C
//
|
|
// MPFunctionLayout.h
|
|
// MathPad
|
|
//
|
|
// Created by Kim Wittenburg on 07.08.14.
|
|
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
|
//
|
|
|
|
@import Cocoa;
|
|
#import "MPLayout.h"
|
|
|
|
@interface MPFunctionLayout : MPLayout
|
|
|
|
+ (MPFunctionLayout *)functionLayoutForFunctionAtIndexPath:(NSIndexPath *)path
|
|
parent:(MPExpressionLayout *)parent;
|
|
|
|
@property (readonly, nonatomic, weak) MPFunction *function; // Convenience
|
|
|
|
@end
|
|
|
|
@interface MPFunctionLayout (MPSubclassOverride)
|
|
|
|
// Should also implement accessor method for special function type:
|
|
// - (MPCustomFunction *)customFunction
|
|
// {
|
|
// return (MPCustomFunction *)self.function;
|
|
// }
|
|
|
|
- (NSBezierPath *)generateBezierPath;
|
|
|
|
@end |