| 1 |
@interface CocoaRadioButton : NSButton { |
| 2 |
@public |
| 3 |
phoenix::RadioButton* radioButton; |
| 4 |
} |
| 5 |
-(id) initWith:(phoenix::RadioButton&)radioButton; |
| 6 |
-(IBAction) activate:(id)sender; |
| 7 |
@end |
| 8 |
|
| 9 |
namespace phoenix { |
| 10 |
|
| 11 |
struct pRadioButton : public pWidget { |
| 12 |
RadioButton& radioButton; |
| 13 |
CocoaRadioButton* cocoaRadioButton = nullptr; |
| 14 |
|
| 15 |
Size minimumSize(); |
| 16 |
void setChecked(); |
| 17 |
void setGeometry(Geometry geometry); |
| 18 |
void setGroup(const group<RadioButton>& group); |
| 19 |
void setImage(const image& image, Orientation orientation); |
| 20 |
void setText(string text); |
| 21 |
|
| 22 |
pRadioButton(RadioButton& radioButton) : pWidget(radioButton), radioButton(radioButton) {} |
| 23 |
void constructor(); |
| 24 |
void destructor(); |
| 25 |
}; |
| 26 |
|
| 27 |
} |