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