Function SDL_ScreenSaverEnabled
pub unsafe extern "C" fn SDL_ScreenSaverEnabled() -> bool
Available on crate feature
dep_sdl3
only.Expand description
Check whether the screensaver is currently enabled.
The screensaver is disabled by default.
The default can also be changed using [SDL_HINT_VIDEO_ALLOW_SCREENSAVER
].
§Return value
Returns true if the screensaver is enabled, false if it is disabled.
§Thread safety
This function should only be called on the main thread.
§Availability
This function is available since SDL 3.2.0.