mirror of https://github.com/bsnes-emu/bsnes.git
26 lines
650 B
C++
26 lines
650 B
C++
@interface CocoaVerticalScroller : NSScroller {
|
|
@public
|
|
phoenix::VerticalScroller* verticalScroller;
|
|
}
|
|
-(id) initWith:(phoenix::VerticalScroller&)verticalScroller;
|
|
-(void) update;
|
|
-(IBAction) scroll:(id)sender;
|
|
@end
|
|
|
|
namespace phoenix {
|
|
|
|
struct pVerticalScroller : public pWidget {
|
|
VerticalScroller& verticalScroller;
|
|
CocoaVerticalScroller* cocoaVerticalScroller = nullptr;
|
|
|
|
Size minimumSize();
|
|
void setLength(unsigned length);
|
|
void setPosition(unsigned position);
|
|
|
|
pVerticalScroller(VerticalScroller& verticalScroller) : pWidget(verticalScroller), verticalScroller(verticalScroller) {}
|
|
void constructor();
|
|
void destructor();
|
|
};
|
|
|
|
}
|