combo-button.hpp 622 B

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