bsnes/hiro/cocoa/widget/label.hpp

28 lines
550 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 setBackgroundColor(Color color) -> void;
auto setForegroundColor(Color color) -> void;
auto setGeometry(Geometry geometry) -> void override;
auto setText(const string& text) -> void;
CocoaLabel* cocoaLabel = nullptr;
};
}
#endif