phoenix/cocoa/widget/label.hpp
raw| 1 | @interface CocoaLabel : NSTextField { |
| 2 | @public |
| 3 | phoenix::Label* label; |
| 4 | } |
| 5 | -(id) initWith:(phoenix::Label&)label; |
| 6 | @end |
| 7 | |
| 8 | namespace phoenix { |
| 9 | |
| 10 | struct pLabel : public pWidget { |
| 11 | Label& label; |
| 12 | CocoaLabel* cocoaLabel = nullptr; |
| 13 | |
| 14 | Size minimumSize(); |
| 15 | void setGeometry(Geometry geometry); |
| 16 | void setText(string text); |
| 17 | |
| 18 | pLabel(Label& label) : pWidget(label), label(label) {} |
| 19 | void constructor(); |
| 20 | void destructor(); |
| 21 | }; |
| 22 | |
| 23 | } |