2015-07-31 21:33:49 -05:00
|
|
|
// 31 july 2015
|
|
|
|
#import <Cocoa/Cocoa.h>
|
2015-07-31 22:06:29 -05:00
|
|
|
#import <stdint.h>
|
|
|
|
|
|
|
|
@protocol tControl
|
|
|
|
@required
|
|
|
|
- (void)tAddToView:(NSView *)v;
|
|
|
|
- (uintmax_t)tAddToAutoLayoutDictionary:(NSMutableDictionary *)views keyNumber:(uintmax_t)n;
|
|
|
|
@end
|
|
|
|
|
2015-08-01 11:43:54 -05:00
|
|
|
@interface tWindowDelegate : NSObject<NSWindowDelegate>
|
2015-08-01 13:22:45 -05:00
|
|
|
- (void)tSetControl:(id<tControl>)cc;
|
2015-08-01 11:43:54 -05:00
|
|
|
- (void)tRelayout;
|
|
|
|
@end
|
|
|
|
|
2015-08-01 13:22:45 -05:00
|
|
|
@interface tBox : NSObject<tControl>
|
|
|
|
- (id)tInitVertical:(BOOL)vert;
|
|
|
|
- (void)tAddControl:(id<tControl>)c stretchy:(BOOL)s;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface tButton : NSObject<tControl>
|
|
|
|
- (id)tInitWithText:(NSString *)text;
|
|
|
|
@end
|
|
|
|
|
2015-07-31 22:06:29 -05:00
|
|
|
extern NSString *tAutoLayoutKey(uintmax_t);
|