libui/redo/osxaltest/osxaltest.h

26 lines
596 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;
- (uintmax_t)tAddToAutoLayoutDictionary:(NSMutableDictionary *)views keyNumber:(uintmax_t)n;
@end
@interface tWindowDelegate : NSObject<NSWindowDelegate>
2015-08-01 13:22:45 -05:00
- (void)tSetControl:(id<tControl>)cc;
- (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);