Debian Codegraph @

phoenix/cocoa/widget/combo-button.hpp

raw
1 @interface CocoaComboButton : NSPopUpButton {
2 @public
3 phoenix::ComboButton* comboButton;
4 }
5 -(id) initWith:(phoenix::ComboButton&)comboButton;
6 -(IBAction) activate:(id)sender;
7 @end
8
9 namespace phoenix {
10
11 struct pComboButton : public pWidget {
12 ComboButton& comboButton;
13 CocoaComboButton* cocoaComboButton = nullptr;
14
15 void append(string text);
16 Size minimumSize();
17 void remove(unsigned selection);
18 void reset();
19 void setGeometry(Geometry geometry);
20 void setSelection(unsigned selection);
21 void setText(unsigned selection, string text);
22
23 pComboButton(ComboButton& comboButton) : pWidget(comboButton), comboButton(comboButton) {}
24 void constructor();
25 void destructor();
26 };
27
28 }