2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_Label)
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaLabel : NSTextField {
|
|
|
|
@public
|
2015-12-30 06:41:46 +00:00
|
|
|
hiro::mLabel* label;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
-(id) initWith:(hiro::mLabel&)label;
|
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 pLabel : pWidget {
|
|
|
|
Declare(Label, Widget)
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
auto minimumSize() const -> Size override;
|
|
|
|
auto setAlignment(Alignment alignment) -> void;
|
|
|
|
auto setGeometry(Geometry geometry) -> void override;
|
|
|
|
auto setText(const string& text) -> void;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
CocoaLabel* cocoaLabel = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|