Archived
1

Fundamental Redesign of the View and Controller

This commit is contained in:
Kim Wittenburg
2014-08-22 00:54:13 +02:00
parent a37d587e1f
commit c024886241
12 changed files with 255 additions and 150 deletions

View File

@@ -14,18 +14,24 @@
+ (MPFunctionLayout *)functionLayoutForFunctionAtIndexPath:(NSIndexPath *)path
parent:(MPExpressionLayout *)parent;
@property (readonly, nonatomic, weak) MPFunction *function; // Convenience
@property (readonly, nonatomic, weak) MPFunction *function;
@end
@interface MPFunctionLayout (MPSubclassOverride)
#pragma mark Cache Methods
- (CTLineRef)lineForPrivateCacheIndex:(NSUInteger)index
generator:(CTLineRef (^)())generator;
// Should also implement accessor method for special function type:
// - (MPCustomFunction *)customFunction
// {
// return (MPCustomFunction *)self.function;
// }
- (NSBezierPath *)generateBezierPath;
#pragma mark Size and Drawing Methods
- (NSSize)generateSize; // To be implemented
- (void)drawAtPoint:(NSPoint)point; // To be implemented
@end