2013-03-15 13:11:33 +00:00
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pWidget : public pSizable {
|
2013-05-02 11:25:45 +00:00
|
|
|
Widget& widget;
|
|
|
|
NSView* cocoaView = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
bool enabled();
|
|
|
|
bool focused();
|
|
|
|
virtual Size minimumSize();
|
2013-11-28 10:29:01 +00:00
|
|
|
virtual void setEnabled(bool enabled);
|
2013-03-15 13:11:33 +00:00
|
|
|
void setFocused();
|
2013-07-29 09:42:45 +00:00
|
|
|
virtual void setFont(string font);
|
|
|
|
virtual void setGeometry(Geometry geometry);
|
2013-11-28 10:29:01 +00:00
|
|
|
virtual void setVisible(bool visible);
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2013-05-02 11:25:45 +00:00
|
|
|
pWidget(Widget& widget) : pSizable(widget), widget(widget) {}
|
2013-03-15 13:11:33 +00:00
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|