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;
|
2015-08-01 14:38:59 -05:00
|
|
|
//TODO- (uintmax_t)tAddToAutoLayoutDictionary:(NSMutableDictionary *)views keyNumber:(uintmax_t)n;
|
|
|
|
- (void)tFillAutoLayoutHorz:(NSMutableString *)horz
|
|
|
|
vert:(NSMutableString *)vert
|
|
|
|
extra:(NSMutableArray *)extra
|
|
|
|
extraVert:(NSMutableArray *)extraVert
|
|
|
|
views:(NSMutableDictionary *)views;
|
2015-07-31 22:06:29 -05:00
|
|
|
@end
|
|
|
|
|
2015-08-01 14:21:03 -05:00
|
|
|
@interface tWindow : NSObject<tControl>
|
2015-08-01 13:22:45 -05:00
|
|
|
- (void)tSetControl:(id<tControl>)cc;
|
2015-08-01 14:44:06 -05:00
|
|
|
- (void)tSetMargined:(BOOL)m;
|
2015-08-01 14:21:03 -05:00
|
|
|
- (void)tShow;
|
|
|
|
// TODO this should probably in tControl
|
2015-08-01 11:43:54 -05:00
|
|
|
- (void)tRelayout;
|
|
|
|
@end
|
|
|
|
|
2015-08-01 14:08:33 -05:00
|
|
|
/*
|
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
|
2015-08-01 14:08:33 -05:00
|
|
|
*/
|
2015-08-01 13:22:45 -05:00
|
|
|
|
|
|
|
@interface tButton : NSObject<tControl>
|
|
|
|
- (id)tInitWithText:(NSString *)text;
|
|
|
|
@end
|
|
|
|
|
2015-07-31 22:06:29 -05:00
|
|
|
extern NSString *tAutoLayoutKey(uintmax_t);
|