Debian Codegraph @

hiro/cocoa/widget/button.hpp

raw
1 #if defined(Hiro_Button)
2
3 @interface CocoaButton : NSButton {
4 @public
5 hiro::mButton* button;
6 }
7 -(id) initWith:(hiro::mButton&)button;
8 -(IBAction) activate:(id)sender;
9 @end
10
11 namespace hiro {
12
13 struct pButton : pWidget {
14 Declare(Button, Widget)
15
16 auto minimumSize() const -> Size override;
17 auto setBordered(bool bordered) -> void;
18 auto setGeometry(Geometry geometry) -> void override;
19 auto setIcon(const multiFactorImage& icon) -> void;
20 auto setOrientation(Orientation orientation) -> void;
21 auto setText(const string& text) -> void;
22
23 CocoaButton* cocoaButton = nullptr;
24 };
25
26 }
27
28 #endif