Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Loading...
Searching...
No Matches
AppWindow Struct Reference

Groups GLFW window handle and all window/resize state. More...

#include <app_window.h>

Data Fields

GLFWwindow * handle
 
bool is_fullscreen
 
int saved_x
 
int saved_y
 
int saved_width
 
int saved_height
 
bool resize_pending
 
int pending_width
 
int pending_height
 

Detailed Description

Groups GLFW window handle and all window/resize state.

Extracted from App to reduce its direct field count and form a cohesive sub-struct for window management (fullscreen toggle, deferred resize, saved position/size for windowed restore).

Field Documentation

◆ handle

GLFWwindow* AppWindow::handle

The GLFW window context.

◆ is_fullscreen

bool AppWindow::is_fullscreen

Fullscreen toggle state.

◆ pending_height

int AppWindow::pending_height

Deferred resize target height.

◆ pending_width

int AppWindow::pending_width

Deferred resize target width.

◆ resize_pending

bool AppWindow::resize_pending

Deferred resize flag.

◆ saved_height

int AppWindow::saved_height

Cached size for window restore.

◆ saved_width

int AppWindow::saved_width

◆ saved_x

int AppWindow::saved_x

◆ saved_y

int AppWindow::saved_y

Cached pos for window restore.


The documentation for this struct was generated from the following file: