2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_HorizontalSlider)
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaHorizontalSlider : NSSlider {
|
|
|
|
@public
|
2015-12-30 06:41:46 +00:00
|
|
|
hiro::mHorizontalSlider* horizontalSlider;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
-(id) initWith:(hiro::mHorizontalSlider&)horizontalSlider;
|
2013-03-21 12:59:01 +00:00
|
|
|
-(IBAction) activate:(id)sender;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
namespace hiro {
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
struct pHorizontalSlider : pWidget {
|
|
|
|
Declare(HorizontalSlider, Widget)
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
auto minimumSize() const -> Size override;
|
|
|
|
auto setGeometry(Geometry geometry) -> void;
|
|
|
|
auto setLength(uint length) -> void;
|
|
|
|
auto setPosition(uint position) -> void;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
CocoaHorizontalSlider* cocoaHorizontalSlider = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|