old-hiro/cocoa/widget/label.hpp
2016-05-15 12:45:15 +02:00

25 lines
454 B
C++

#if defined(Hiro_Label)
@interface CocoaLabel : NSTextView {
@public
hiro::mLabel* label;
}
-(id) initWith:(hiro::mLabel&)label;
@end
namespace hiro {
struct pLabel : pWidget {
Declare(Label, Widget)
auto minimumSize() const -> Size override;
auto setAlignment(Alignment alignment) -> void;
auto setGeometry(Geometry geometry) -> void override;
auto setText(const string& text) -> void;
CocoaLabel* cocoaLabel = nullptr;
};
}
#endif