check-label.hpp 517 B

123456789101112131415161718192021222324252627
  1. #if defined(Hiro_CheckLabel)
  2. @interface CocoaCheckLabel : NSButton {
  3. @public
  4. hiro::mCheckLabel* checkLabel;
  5. }
  6. -(id) initWith:(hiro::mCheckLabel&)checkLabel;
  7. -(IBAction) activate:(id)sender;
  8. @end
  9. namespace hiro {
  10. struct pCheckLabel : pWidget {
  11. Declare(CheckLabel, Widget)
  12. auto minimumSize() const -> Size override;
  13. auto setChecked(bool checked) -> void;
  14. auto setGeometry(Geometry geometry) -> void;
  15. auto setText(const string& text) -> void;
  16. CocoaCheckLabel* cocoaCheckLabel = nullptr;
  17. };
  18. }
  19. #endif