2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_ProgressBar)
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaProgressBar : NSProgressIndicator {
|
|
|
|
@public
|
2015-12-30 06:41:46 +00:00
|
|
|
hiro::mProgressBar* progressBar;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
-(id) initWith:(hiro::mProgressBar&)progressBar;
|
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 pProgressBar : pWidget {
|
|
|
|
Declare(ProgressBar, Widget)
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
auto minimumSize() const -> Size override;
|
|
|
|
auto setPosition(uint position) -> void;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
CocoaProgressBar* cocoaProgressBar = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|