2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaVerticalSlider : NSSlider {
|
|
|
|
@public
|
2013-05-02 11:25:45 +00:00
|
|
|
phoenix::VerticalSlider* verticalSlider;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
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 {
|
2013-05-02 11:25:45 +00:00
|
|
|
VerticalSlider& verticalSlider;
|
|
|
|
CocoaVerticalSlider* cocoaVerticalSlider = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
Size minimumSize();
|
2013-07-29 09:42:45 +00:00
|
|
|
void setGeometry(Geometry geometry);
|
2013-03-15 13:11:33 +00:00
|
|
|
void setLength(unsigned length);
|
|
|
|
void setPosition(unsigned position);
|
|
|
|
|
2013-05-02 11:25:45 +00:00
|
|
|
pVerticalSlider(VerticalSlider& verticalSlider) : pWidget(verticalSlider), verticalSlider(verticalSlider) {}
|
2013-03-15 13:11:33 +00:00
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|