2015-06-12 13:14:38 +00:00
|
|
|
#if defined(Hiro_Widget)
|
|
|
|
|
|
|
|
namespace hiro {
|
|
|
|
|
|
|
|
struct pWidget : pSizable {
|
|
|
|
Declare(Widget, Sizable)
|
|
|
|
|
2015-06-15 22:16:43 +00:00
|
|
|
auto focused() const -> bool override;
|
2015-06-12 13:14:38 +00:00
|
|
|
virtual auto minimumSize() -> Size;
|
|
|
|
auto setEnabled(bool enabled) -> void override;
|
|
|
|
auto setFocused() -> void;
|
|
|
|
auto setFont(const string& font) -> void override;
|
|
|
|
virtual auto setGeometry(Geometry geometry) -> void;
|
|
|
|
auto setVisible(bool visible) -> void override;
|
|
|
|
|
|
|
|
auto _parentHandle() -> HWND;
|
2015-06-15 22:16:43 +00:00
|
|
|
auto _parentWidget() -> maybe<pWidget&>;
|
|
|
|
auto _parentWindow() -> maybe<pWindow&>;
|
2015-06-12 13:14:38 +00:00
|
|
|
auto _setState() -> void;
|
|
|
|
|
|
|
|
bool abstract = false;
|
|
|
|
HWND hwnd = 0;
|
|
|
|
HFONT hfont = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|