2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_RadioLabel)
|
|
|
|
|
2013-11-28 10:29:01 +00:00
|
|
|
@interface CocoaRadioLabel : NSButton {
|
|
|
|
@public
|
2015-12-30 06:41:46 +00:00
|
|
|
hiro::mRadioLabel* radioLabel;
|
2013-11-28 10:29:01 +00:00
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
-(id) initWith:(hiro::mRadioLabel&)radioLabel;
|
2013-11-28 10:29:01 +00:00
|
|
|
-(IBAction) activate:(id)sender;
|
|
|
|
@end
|
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
namespace hiro {
|
2013-11-28 10:29:01 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
struct pRadioLabel : pWidget {
|
|
|
|
Declare(RadioLabel, Widget)
|
2013-11-28 10:29:01 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
auto minimumSize() const -> Size override;
|
|
|
|
auto setChecked() -> void;
|
|
|
|
auto setGeometry(Geometry geometry) -> void override;
|
|
|
|
auto setGroup(sGroup group) -> void;
|
|
|
|
auto setText(const string& text) -> void;
|
2013-11-28 10:29:01 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
CocoaRadioLabel* cocoaRadioLabel = nullptr;
|
2013-11-28 10:29:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|