Class Window¶
Defined in File window.h
Class Documentation¶
-
class
Window¶ Handles window creation.
Public Functions
-
Window(int xOffset, int yOffset, int width, int height, const String &title, bool isEditor, bool fullScreen, const String &icon)¶
-
~Window()¶
-
void
show()¶
-
std::optional<int>
processMessages()¶
-
void
swapBuffers()¶
-
void
applyDefaultViewport()¶
-
void
clipCursor(RECT clip)¶ Clips or blocks the cursor beyond the specified rectangle.
-
void
resetClipCursor()¶ Reset cursor clips and allow free cursor movement.
-
void
showCursor(bool enabled)¶
-
int
getWidth() const¶
-
int
getHeight() const¶
-
int
getTitleBarHeight() const¶
-
HWND
getWindowHandle()¶
Protected Functions
Protected Attributes
-
int
m_Width¶
-
int
m_Height¶
-
bool
m_IsEditorWindow¶
-
bool
m_IsFullscreen¶
-
WNDCLASSEX
m_WindowClass= {0}¶
-
LPCSTR
m_ClassName¶
-
HINSTANCE
m_AppInstance¶
-
HWND
m_WindowHandle¶
Protected Static Functions
-
static LRESULT CALLBACK Window::WindowsProc(HWND windowHandler, UINT msg, WPARAM wParam, LPARAM lParam) Wraps DefWindowProc function.
-