libui/redo/osxaltest/osxaltest.h

36 lines
867 B
C
Raw Normal View History

// 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;
//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
@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;
- (void)tShow;
// TODO this should probably in tControl
- (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
*/
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);