SDL_GetWindowSizeInPixels

Get the size of a window's client area, in pixels.

extern (C) nothrow @nogc extern
bool
SDL_GetWindowSizeInPixels
(,
int* w
,
int* h
)

Parameters

window SDL_Window*

the window from which the drawable size should be queried.

w int*

a pointer to variable for storing the width in pixels, may be NULL.

h int*

a pointer to variable for storing the height in pixels, may be NULL.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta