7#include "structure/graphics/spk_extend_2d.hpp"
30 Handle _winAPIHandle =
nullptr;
33 static RECT _computeWindowRectForClient(uint32_t p_cw, uint32_t p_ch, DWORD p_style, DWORD p_exstyle);
35 Window(
const std::wstring &p_className,
const std::wstring &p_title,
const spk::Extend2D &p_extend,
void *p_userPtr);
48 Window(
const Window &) =
delete;
49 Window &operator=(
const Window &) =
delete;
50 Window(Window &&) =
delete;
51 Window &operator=(Window &&) =
delete;
Registers a Win32 window class and instantiates windows from it.
Definition spk_class.hpp:24
HWND Handle
Native Win32 handle type.
Definition spk_window.hpp:27
Handle handle() const noexcept
Retrieves the underlying HWND.
Definition spk_window.cpp:69
~Window()
Destroys the underlying window handle.
Definition spk_window.cpp:54
void show() const
Shows the window using SW_SHOW.
Definition spk_window.cpp:63
Axis-aligned rectangle defined by an anchor point and size.
Definition spk_extend_2d.hpp:24