2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_CheckButton)
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaCheckButton : NSButton {
|
|
|
|
@public
|
2015-12-30 06:41:46 +00:00
|
|
|
hiro::mCheckButton* checkButton;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
-(id) initWith:(hiro::mCheckButton&)checkButton;
|
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 pCheckButton : pWidget {
|
|
|
|
Declare(CheckButton, 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(bool checked) -> void;
|
|
|
|
auto setGeometry(Geometry geometry) -> void override;
|
|
|
|
auto setImage(const Image& image) -> void;
|
|
|
|
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
|
|
|
CocoaCheckButton* cocoaCheckButton = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|