2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_CheckLabel)
|
|
|
|
|
2013-11-28 10:29:01 +00:00
|
|
|
@interface CocoaCheckLabel : NSButton {
|
|
|
|
@public
|
2015-12-30 06:41:46 +00:00
|
|
|
hiro::mCheckLabel* checkLabel;
|
2013-11-28 10:29:01 +00:00
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
-(id) initWith:(hiro::mCheckLabel&)checkLabel;
|
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 pCheckLabel : pWidget {
|
|
|
|
Declare(CheckLabel, Widget)
|
2013-11-28 10:29:01 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
auto minimumSize() const -> Size override;
|
|
|
|
auto setChecked(bool checked) -> void;
|
|
|
|
auto setGeometry(Geometry geometry) -> void;
|
|
|
|
auto setText(const string& text) -> void;
|
2013-11-28 10:29:01 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
CocoaCheckLabel* cocoaCheckLabel = nullptr;
|
2013-11-28 10:29:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|