26 lines
798 B
Objective-C
26 lines
798 B
Objective-C
//
|
|
// MPExpressionLayout.h
|
|
// MathPad
|
|
//
|
|
// Created by Kim Wittenburg on 07.08.14.
|
|
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
|
//
|
|
|
|
@import Cocoa;
|
|
#import "MPLayout.h"
|
|
#import "MPExpression.h"
|
|
#import "MPFunctionLayout.h"
|
|
|
|
#define kMPEmptyBoxWidth (self.usesSmallSize ? 2.0 : 3.0)
|
|
#define kMPEmptyBoxHeight (CTFontGetDescent((CTFontRef)self.font) + CTFontGetAscent((CTFontRef)self.font) + CTFontGetLeading((CTFontRef)self.font))
|
|
#define kMPEmptyBoxYOrigin (-(CTFontGetDescent((CTFontRef)self.font) + CTFontGetLeading((CTFontRef)self.font)))
|
|
|
|
@interface MPExpressionLayout : MPLayout
|
|
|
|
- (instancetype)initWithExpression:(MPExpression *)expression
|
|
parent:(MPFunctionLayout *)parent;
|
|
|
|
@property (readonly, nonatomic, weak) MPExpression *expression;
|
|
|
|
@end
|