2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaRadioButton : NSButton {
|
|
|
|
@public
|
2013-05-02 11:25:45 +00:00
|
|
|
phoenix::RadioButton* radioButton;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::RadioButton&)radioButton;
|
|
|
|
-(IBAction) activate:(id)sender;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pRadioButton : public pWidget {
|
2013-05-02 11:25:45 +00:00
|
|
|
RadioButton& radioButton;
|
|
|
|
CocoaRadioButton* cocoaRadioButton = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
Size minimumSize();
|
|
|
|
void setChecked();
|
2013-07-29 09:42:45 +00:00
|
|
|
void setGeometry(Geometry geometry);
|
2013-05-02 11:25:45 +00:00
|
|
|
void setGroup(const group<RadioButton>& group);
|
2013-11-28 10:29:01 +00:00
|
|
|
void setImage(const image& image, Orientation orientation);
|
2013-07-29 09:42:45 +00:00
|
|
|
void setText(string text);
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2013-05-02 11:25:45 +00:00
|
|
|
pRadioButton(RadioButton& radioButton) : pWidget(radioButton), radioButton(radioButton) {}
|
2013-03-15 13:11:33 +00:00
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|