Debian Codegraph @

phoenix/cocoa/widget/button.hpp

raw
1 @interface CocoaButton : NSButton {
2 @public
3 phoenix::Button* button;
4 }
5 -(id) initWith:(phoenix::Button&)button;
6 -(IBAction) activate:(id)sender;
7 @end
8
9 namespace phoenix {
10
11 struct pButton : public pWidget {
12 Button& button;
13 CocoaButton* cocoaButton = nullptr;
14
15 Size minimumSize();
16 void setGeometry(Geometry geometry);
17 void setImage(const image& image, Orientation orientation);
18 void setText(string text);
19
20 pButton(Button& button) : pWidget(button), button(button) {}
21 void constructor();
22 void destructor();
23 };
24
25 }