2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_RadioButton)
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaRadioButton : NSButton {
|
|
|
|
@public
|
2015-12-30 06:41:46 +00:00
|
|
|
hiro::mRadioButton* radioButton;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
-(id) initWith:(hiro::mRadioButton&)radioButton;
|
2013-03-21 12:59:01 +00:00
|
|
|
-(IBAction) activate:(id)sender;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
namespace hiro {
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
struct pRadioButton : pWidget {
|
|
|
|
Declare(RadioButton, Widget)
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
auto minimumSize() const -> Size override;
|
|
|
|
auto setBordered(bool bordered) -> void;
|
|
|
|
auto setChecked() -> void;
|
|
|
|
auto setGeometry(Geometry geometry) -> void override;
|
|
|
|
auto setGroup(sGroup group) -> void;
|
2016-01-07 08:14:33 +00:00
|
|
|
auto setIcon(const image& icon) -> void;
|
2015-12-30 06:41:46 +00:00
|
|
|
auto setOrientation(Orientation orientation) -> void;
|
|
|
|
auto setText(const string& text) -> void;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
CocoaRadioButton* cocoaRadioButton = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|