vertical-slider.hpp 563 B

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