| 1 |
@interface CocoaFrame : NSBox { |
| 2 |
@public |
| 3 |
phoenix::Frame* frame; |
| 4 |
} |
| 5 |
-(id) initWith:(phoenix::Frame&)frame; |
| 6 |
@end |
| 7 |
|
| 8 |
namespace phoenix { |
| 9 |
|
| 10 |
struct pFrame : public pWidget { |
| 11 |
Frame& frame; |
| 12 |
CocoaFrame* cocoaFrame = nullptr; |
| 13 |
|
| 14 |
void setEnabled(bool enabled); |
| 15 |
void setFont(string font); |
| 16 |
void setGeometry(Geometry geometry); |
| 17 |
void setText(string text); |
| 18 |
void setVisible(bool visible); |
| 19 |
|
| 20 |
pFrame(Frame& frame) : pWidget(frame), frame(frame) {} |
| 21 |
void constructor(); |
| 22 |
void destructor(); |
| 23 |
void orphan(); |
| 24 |
}; |
| 25 |
|
| 26 |
} |