| 1 |
#if defined(Hiro_ComboButton) |
| 2 |
|
| 3 |
@interface CocoaComboButton : NSPopUpButton { |
| 4 |
@public |
| 5 |
hiro::mComboButton* comboButton; |
| 6 |
} |
| 7 |
-(id) initWith:(hiro::mComboButton&)comboButton; |
| 8 |
-(IBAction) activate:(id)sender; |
| 9 |
@end |
| 10 |
|
| 11 |
namespace hiro { |
| 12 |
|
| 13 |
struct pComboButton : pWidget { |
| 14 |
Declare(ComboButton, Widget) |
| 15 |
|
| 16 |
auto append(sComboButtonItem item) -> void; |
| 17 |
auto minimumSize() const -> Size override; |
| 18 |
auto remove(sComboButtonItem item) -> void; |
| 19 |
auto reset() -> void override; |
| 20 |
auto setGeometry(Geometry geometry) -> void override; |
| 21 |
|
| 22 |
auto _updateSelected(signed selected) -> void; |
| 23 |
|
| 24 |
CocoaComboButton* cocoaComboButton = nullptr; |
| 25 |
}; |
| 26 |
|
| 27 |
} |
| 28 |
|
| 29 |
#endif |