2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaHorizontalScroller : NSScroller {
|
|
|
|
@public
|
2013-05-02 11:25:45 +00:00
|
|
|
phoenix::HorizontalScroller* horizontalScroller;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::HorizontalScroller&)horizontalScroller;
|
2013-03-15 13:11:33 +00:00
|
|
|
-(void) update;
|
2013-03-21 12:59:01 +00:00
|
|
|
-(IBAction) scroll:(id)sender;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pHorizontalScroller : public pWidget {
|
2013-05-02 11:25:45 +00:00
|
|
|
HorizontalScroller& horizontalScroller;
|
|
|
|
CocoaHorizontalScroller* cocoaHorizontalScroller = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
Size minimumSize();
|
|
|
|
unsigned position();
|
|
|
|
void setLength(unsigned length);
|
|
|
|
void setPosition(unsigned position);
|
|
|
|
|
2013-05-02 11:25:45 +00:00
|
|
|
pHorizontalScroller(HorizontalScroller& horizontalScroller) : pWidget(horizontalScroller), horizontalScroller(horizontalScroller) {}
|
2013-03-15 13:11:33 +00:00
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|