Archived
1

Added the MPExpressionTree Classes

This commit is contained in:
Kim Wittenburg
2014-10-13 23:53:04 +02:00
parent 82259f87e2
commit 5592128926
60 changed files with 1981 additions and 725 deletions

View File

@@ -174,6 +174,11 @@
return bounds;
}
- (BOOL)drawsChildrenManually
{
return NO;
}
- (void)drawAtPoint:(NSPoint)point
{
NSAffineTransform *transform = [NSAffineTransform transform];
@@ -181,6 +186,13 @@
yBy:point.y];
[transform concat];
[self draw];
if (!self.drawsChildrenManually) {
for (NSUInteger index = 0; index < [self numberOfChildren]; index++) {
MPLayout *childLayout = [self childLayoutAtIndex:index];
NSPoint offset = [self offsetOfChildLayoutAtIndex:index];
[childLayout drawAtPoint:offset];
}
}
[transform invert];
[transform concat];
}