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();
|
|
|
|
void setEnabled(bool enabled);
|
|
|
|
void setFocused();
|
2013-07-29 09:42:45 +00:00
|
|
|
virtual void setFont(string font);
|
|
|
|
virtual void setGeometry(Geometry geometry);
|
2013-03-15 13:11:33 +00:00
|
|
|
void setVisible(bool visible);
|
|
|
|
|
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();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|