horizontal-slider.hpp 574 B

123456789101112131415161718192021222324252627
  1. #if defined(Hiro_HorizontalSlider)
  2. @interface CocoaHorizontalSlider : NSSlider {
  3. @public
  4. hiro::mHorizontalSlider* horizontalSlider;
  5. }
  6. -(id) initWith:(hiro::mHorizontalSlider&)horizontalSlider;
  7. -(IBAction) activate:(id)sender;
  8. @end
  9. namespace hiro {
  10. struct pHorizontalSlider : pWidget {
  11. Declare(HorizontalSlider, Widget)
  12. auto minimumSize() const -> Size override;
  13. auto setGeometry(Geometry geometry) -> void;
  14. auto setLength(uint length) -> void;
  15. auto setPosition(uint position) -> void;
  16. CocoaHorizontalSlider* cocoaHorizontalSlider = nullptr;
  17. };
  18. }
  19. #endif