natiny_window_get_width
int natiny_window_get_width(NatinyWindow id);
Returns the current width of a window in drawing units.
Parameters
| Name | Type | Description |
|---|---|---|
id |
NatinyWindow |
Window handle from natiny_window_create |
Returns
| Type | Description |
|---|---|
int |
Window width, 0 if the window does not exist |
Example
NatinyWindow win = natiny_window_create("My Game", 1280, 720);
int w = natiny_window_get_width(win);
printf("Width: %d\n", w);