2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_Button)
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaButton : NSButton {
|
|
|
|
@public
|
2015-12-30 06:41:46 +00:00
|
|
|
hiro::mButton* button;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
-(id) initWith:(hiro::mButton&)button;
|
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 pButton : pWidget {
|
|
|
|
Declare(Button, 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 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
|
|
|
CocoaButton* cocoaButton = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|