5#include <unordered_map>
7#include "structure/win32/spk_window.hpp"
26 static void _subscribe(
const std::wstring &p_className,
const WNDPROC &p_windowProcedure);
27 static void _unsubscribe(
const std::wstring &p_className);
29 static inline std::unordered_map<std::wstring, size_t> _classSubscriptionMap;
31 std::wstring _className;
39 Class(
const std::wstring &p_className,
const WNDPROC &p_windowProcedure);
Window instanciate(const std::wstring &p_title, const spk::Extend2D &p_extend, void *p_userPtr)
Creates a window instance bound to this class.
Definition spk_class.cpp:62
Class(const std::wstring &p_className, const WNDPROC &p_windowProcedure)
Registers a Win32 class name with a window procedure.
Definition spk_class.cpp:40
RAII wrapper over a Win32 HWND handle created by spk::Win32::Class.
Definition spk_window.hpp:20
Axis-aligned rectangle defined by an anchor point and size.
Definition spk_extend_2d.hpp:24