2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaVerticalSlider : NSSlider {
|
|
|
|
@public
|
|
|
|
phoenix::VerticalSlider *verticalSlider;
|
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::VerticalSlider&)verticalSlider;
|
|
|
|
-(IBAction) activate:(id)sender;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pVerticalSlider : public pWidget {
|
|
|
|
VerticalSlider &verticalSlider;
|
2013-03-21 12:59:01 +00:00
|
|
|
CocoaVerticalSlider *cocoaVerticalSlider = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
Size minimumSize();
|
|
|
|
unsigned position();
|
2013-04-09 13:31:46 +00:00
|
|
|
void setGeometry(const Geometry &geometry);
|
2013-03-15 13:11:33 +00:00
|
|
|
void setLength(unsigned length);
|
|
|
|
void setPosition(unsigned position);
|
|
|
|
|
|
|
|
pVerticalSlider(VerticalSlider &verticalSlider) : pWidget(verticalSlider), verticalSlider(verticalSlider) {}
|
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|