2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_Frame)
|
|
|
|
|
2013-11-28 10:29:01 +00:00
|
|
|
@interface CocoaFrame : NSBox {
|
|
|
|
@public
|
2015-12-30 06:41:46 +00:00
|
|
|
hiro::mFrame* frame;
|
2013-11-28 10:29:01 +00:00
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
-(id) initWith:(hiro::mFrame&)frame;
|
2013-11-28 10:29:01 +00:00
|
|
|
@end
|
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
namespace hiro {
|
2013-11-28 10:29:01 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
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;
|
2013-11-28 10:29:01 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
auto _layout() -> maybe<pLayout&>;
|
2013-11-28 10:29:01 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
CocoaFrame* cocoaFrame = nullptr;
|
2013-11-28 10:29:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|