mirror of https://github.com/bsnes-emu/bsnes.git
58 lines
1.7 KiB
C++
58 lines
1.7 KiB
C++
#if defined(Hiro_Window)
|
|
|
|
namespace hiro {
|
|
|
|
struct pWindow : pObject {
|
|
Declare(Window, Object)
|
|
|
|
static auto initialize() -> void;
|
|
|
|
static uint minimumStatusHeight;
|
|
|
|
auto append(sMenuBar menuBar) -> void;
|
|
auto append(sSizable sizable) -> void;
|
|
auto append(sStatusBar statusBar) -> void;
|
|
auto focused() const -> bool override;
|
|
auto frameMargin() const -> Geometry;
|
|
auto monitor() const -> uint;
|
|
auto remove(sMenuBar menuBar) -> void;
|
|
auto remove(sSizable sizable) -> void;
|
|
auto remove(sStatusBar statusBar) -> void;
|
|
auto setBackgroundColor(Color color) -> void;
|
|
auto setDismissable(bool dismissable) -> void;
|
|
auto setDroppable(bool droppable) -> void;
|
|
auto setEnabled(bool enabled) -> void;
|
|
auto setFocused() -> void;
|
|
auto setFont(const Font& font) -> void override;
|
|
auto setFullScreen(bool fullScreen) -> void;
|
|
auto setGeometry(Geometry geometry) -> void;
|
|
auto setMaximized(bool maximized) -> void;
|
|
auto setMaximumSize(Size size) -> void;
|
|
auto setMinimized(bool minimized) -> void;
|
|
auto setMinimumSize(Size size) -> void;
|
|
auto setModal(bool modal) -> void;
|
|
auto setResizable(bool resizable) -> void;
|
|
auto setTitle(string text) -> void;
|
|
auto setVisible(bool visible) -> void;
|
|
|
|
auto modalIncrement() -> void;
|
|
auto modalDecrement() -> void;
|
|
auto windowProc(HWND, UINT, WPARAM, LPARAM) -> maybe<LRESULT>;
|
|
|
|
auto _geometry() -> Geometry;
|
|
auto _modalityCount() -> unsigned;
|
|
auto _modalityDisabled() -> bool;
|
|
auto _modalityUpdate() -> void;
|
|
auto _statusHeight() const -> int;
|
|
|
|
HWND hwnd = nullptr;
|
|
HFONT hstatusfont = nullptr;
|
|
HBRUSH hbrush = nullptr;
|
|
COLORREF hbrushColor = 0;
|
|
Geometry windowedGeometry{128, 128, 256, 256};
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|