bsnes/hiro/cocoa/widget/frame.hpp

29 lines
543 B
C++

#if defined(Hiro_Frame)
@interface CocoaFrame : NSBox {
@public
hiro::mFrame* frame;
}
-(id) initWith:(hiro::mFrame&)frame;
@end
namespace hiro {
struct pFrame : pWidget {
Declare(Frame, Widget)
auto setEnabled(bool enabled) -> void override;
auto setFont(const Font& font) -> void override;
auto setGeometry(Geometry geometry) -> void override;
auto setText(const string& text) -> void;
auto setVisible(bool visible) -> void override;
auto _layout() -> maybe<pLayout&>;
CocoaFrame* cocoaFrame = nullptr;
};
}
#endif