29 |
|
|
30 |
@interface UiWidget : NSObject |
@interface UiWidget : NSObject |
31 |
{ |
{ |
|
@public |
|
|
id _delegate; |
|
32 |
@private |
@private |
33 |
NSPoint _position; |
id _delegate; |
34 |
NSSize _size; |
|
35 |
BOOL _visible; |
NSRect _frame; |
36 |
BOOL _enabled; |
float _depth; |
37 |
BOOL _focus; |
float _alpha; |
38 |
BOOL _mouseOver; |
|
39 |
int _layer; |
BOOL _visible; |
40 |
|
BOOL _enabled; |
41 |
|
BOOL _focus; |
42 |
} |
} |
43 |
|
|
44 |
- (id) initWithPosition: (NSPoint)position |
- (id) initWithPosition: (NSPoint)position |
45 |
size: (NSSize)size; |
size: (NSSize)size; |
46 |
|
|
47 |
|
- (void) setDelegate: (id)delegate; |
48 |
|
- (id) delegate; |
49 |
|
|
50 |
|
- (NSRect) frame; |
51 |
|
|
52 |
|
- (void) setPosition: (NSPoint)position; |
53 |
|
- (NSPoint) position; |
54 |
|
|
55 |
|
- (void) setSize: (NSSize)size; |
56 |
|
- (void) sizeToFit; |
57 |
|
- (NSSize) size; |
58 |
|
|
59 |
|
- (void) setDepth: (float)depth; |
60 |
|
- (float) depth; |
61 |
|
|
62 |
|
- (void) setAlpha: (float)alpha; |
63 |
|
- (float) alpha; |
64 |
|
|
65 |
|
- (void) setVisible: (BOOL)visible; |
66 |
- (BOOL) isVisible; |
- (BOOL) isVisible; |
67 |
|
|
68 |
- (void) setEnabled: (BOOL)enabled; |
- (void) setEnabled: (BOOL)enabled; |
69 |
- (BOOL) isEnabled; |
- (BOOL) isEnabled; |
70 |
|
|
71 |
- (void) setFocus: (BOOL)focus; |
- (void) setFocus: (BOOL)focus; |
72 |
- (BOOL) hasFocus; |
- (BOOL) hasFocus; |
73 |
- (void) setMouseOver: (BOOL)mouseOver; |
|
|
- (BOOL) mouseOver; |
|
|
- (float) x; |
|
|
- (float) y; |
|
|
- (NSPoint) position; |
|
|
- (float) width; |
|
|
- (float) height; |
|
|
- (NSSize) size; |
|
|
- (int) layer; |
|
|
- (void) setLayer: (int)layer; |
|
|
- (void) setSize: (NSSize)size; |
|
|
- (void) show; |
|
|
- (void) hide; |
|
|
- (void) sizeToFit; |
|
74 |
- (void) display; |
- (void) display; |
|
- (void) setDelegate: (id)delegate; |
|
|
- (id) delegate; |
|
75 |
|
|
76 |
@end |
@end |
77 |
|
|