vertical-scroll-bar.hpp 553 B

123456789101112131415161718192021222324252627
  1. #if defined(Hiro_VerticalScrollBar)
  2. @interface CocoaVerticalScrollBar : NSScroller {
  3. @public
  4. hiro::mVerticalScrollBar* verticalScrollBar;
  5. }
  6. -(id) initWith:(hiro::mVerticalScrollBar&)verticalScrollBar;
  7. -(void) update;
  8. -(IBAction) scroll:(id)sender;
  9. @end
  10. namespace hiro {
  11. struct pVerticalScrollBar : pWidget {
  12. Declare(VerticalScrollBar, Widget)
  13. auto minimumSize() const -> Size override;
  14. auto setLength(uint length) -> void;
  15. auto setPosition(uint position) -> void;
  16. CocoaVerticalScrollBar* cocoaVerticalScrollBar = nullptr;
  17. };
  18. }
  19. #endif