mirror of https://github.com/bsnes-emu/bsnes.git
27 lines
553 B
C++
27 lines
553 B
C++
|
#if defined(Hiro_VerticalScrollBar)
|
||
|
|
||
|
@interface CocoaVerticalScrollBar : NSScroller {
|
||
|
@public
|
||
|
hiro::mVerticalScrollBar* verticalScrollBar;
|
||
|
}
|
||
|
-(id) initWith:(hiro::mVerticalScrollBar&)verticalScrollBar;
|
||
|
-(void) update;
|
||
|
-(IBAction) scroll:(id)sender;
|
||
|
@end
|
||
|
|
||
|
namespace hiro {
|
||
|
|
||
|
struct pVerticalScrollBar : pWidget {
|
||
|
Declare(VerticalScrollBar, Widget)
|
||
|
|
||
|
auto minimumSize() const -> Size override;
|
||
|
auto setLength(uint length) -> void;
|
||
|
auto setPosition(uint position) -> void;
|
||
|
|
||
|
CocoaVerticalScrollBar* cocoaVerticalScrollBar = nullptr;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|