2015-06-12 13:14:38 +00:00
|
|
|
#if defined(Hiro_Window)
|
|
|
|
|
|
|
|
namespace hiro {
|
|
|
|
|
|
|
|
struct pWindow : pObject {
|
|
|
|
Declare(Window, Object)
|
|
|
|
|
|
|
|
auto append(sLayout layout) -> void;
|
|
|
|
auto append(sMenuBar menuBar) -> void;
|
|
|
|
auto append(sStatusBar statusBar) -> void;
|
|
|
|
auto focused() const -> bool override;
|
|
|
|
auto frameMargin() const -> Geometry;
|
|
|
|
auto remove(sLayout layout) -> void;
|
|
|
|
auto remove(sMenuBar menuBar) -> void;
|
|
|
|
auto remove(sStatusBar statusBar) -> void;
|
|
|
|
auto setBackgroundColor(Color color) -> void;
|
|
|
|
auto setDroppable(bool droppable) -> void;
|
|
|
|
auto setEnabled(bool enabled) -> void;
|
|
|
|
auto setFocused() -> void;
|
2015-06-15 22:26:47 +00:00
|
|
|
auto setFont(const string& font) -> void override;
|
2015-06-12 13:14:38 +00:00
|
|
|
auto setFullScreen(bool fullScreen) -> void;
|
|
|
|
auto setGeometry(Geometry geometry) -> void;
|
|
|
|
auto setModal(bool modal) -> void;
|
|
|
|
auto setResizable(bool resizable) -> void;
|
|
|
|
auto setTitle(string text) -> void;
|
|
|
|
auto setVisible(bool visible) -> void;
|
|
|
|
|
|
|
|
auto onClose() -> void;
|
|
|
|
auto onDrop(WPARAM wparam) -> void;
|
|
|
|
auto onEraseBackground() -> bool;
|
|
|
|
auto onModalBegin() -> void;
|
|
|
|
auto onModalEnd() -> void;
|
|
|
|
auto onMove() -> void;
|
|
|
|
auto onSize() -> void;
|
|
|
|
|
|
|
|
auto _geometry() -> Geometry;
|
2015-06-15 22:16:43 +00:00
|
|
|
auto _modalityCount() -> unsigned;
|
|
|
|
auto _modalityDisabled() -> bool;
|
|
|
|
auto _modalityUpdate() -> void;
|
2015-06-12 13:14:38 +00:00
|
|
|
|
|
|
|
HWND hwnd = nullptr;
|
|
|
|
HFONT hstatusfont = nullptr;
|
|
|
|
HBRUSH hbrush = nullptr;
|
|
|
|
COLORREF hbrushColor = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|