SDL_GetWindowAspectRatio

Get the size of a window's client area.

extern (C) nothrow @nogc extern
bool
SDL_GetWindowAspectRatio

Parameters

window SDL_Window*

the window to query the width and height from.

min_aspect float*

a pointer filled in with the minimum aspect ratio of the window, may be NULL.

max_aspect float*

a pointer filled in with the maximum aspect ratio of the window, 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