check-button.hpp 678 B

123456789101112131415161718192021222324252627282930
  1. #if defined(Hiro_CheckButton)
  2. @interface CocoaCheckButton : NSButton {
  3. @public
  4. hiro::mCheckButton* checkButton;
  5. }
  6. -(id) initWith:(hiro::mCheckButton&)checkButton;
  7. -(IBAction) activate:(id)sender;
  8. @end
  9. namespace hiro {
  10. struct pCheckButton : pWidget {
  11. Declare(CheckButton, Widget)
  12. auto minimumSize() const -> Size override;
  13. auto setBordered(bool bordered) -> void;
  14. auto setChecked(bool checked) -> void;
  15. auto setGeometry(Geometry geometry) -> void override;
  16. auto setIcon(const image& icon) -> void;
  17. auto setOrientation(Orientation orientation) -> void;
  18. auto setText(const string& text) -> void;
  19. CocoaCheckButton* cocoaCheckButton = nullptr;
  20. };
  21. }
  22. #endif