URL: https://graphicscomputing.fr/cgp/reference/window_structure/
Description: GLFW window of the application (size, title, aspect ratio).

# window_structure

GLFW window of the application (size, title, aspect ratio).

Fields:

- `GLFWwindow* glfw_window` - GLFW window handle, nullptr until create_window() is called.
- `GLFWmonitor* monitor` - Primary monitor recorded by create_window(), used by set_full_screen().
- `int x_pos` - Horizontal position of the window on screen in pixels, read at creation and when switching to full screen (restored by set_windowed_screen).
- `int y_pos` - Vertical position of the window on screen in pixels, read at creation and when switching to full screen (restored by set_windowed_screen).
- `int width` - Width of the window in pixels, set at creation and updated by the application on resize.
- `int height` - Height of the window in pixels, set at creation and updated by the application on resize.
- `int screen_resolution_width` - Width in pixels of the primary monitor video mode, read at window creation.
- `int screen_resolution_height` - Height in pixels of the primary monitor video mode, read at window creation.
- `bool is_full_screen` - Whether the window is in full screen mode, false by default; set by set_full_screen() and set_windowed_screen() (GUI checkbox or Shift+F in the template).
- `int windowed_width` - Width of the window in screen coordinates saved by set_full_screen() and restored by set_windowed_screen(), 0 until then.
- `int windowed_height` - Height of the window in screen coordinates saved by set_full_screen() and restored by set_windowed_screen(), 0 until then.
