hints topic
CategoryHints
This file contains functions to set and get configuration hints, as well as listing each of them alphabetically.
The convention for naming hints is SDL_HINT_X, where "SDL_X" is the environment variable that can be used to override the default.
In general these hints are just that - they may or may not be supported or applicable on any given platform, but they provide a way for an application or user to give the library a hint as to how they would like the library to work.
Functions
-
sdlAddHintCallback(
String? name, Pointer< hintsNativeFunction< callback, Pointer<SdlHintCallback> >NativeType> userdata) → bool - Add a function to watch a particular hint.
-
sdlGetHint(
String? name) → String? hints - Get the value of a hint.
-
sdlGetHintBoolean(
String? name, bool defaultValue) → bool hints - Get the boolean value of a hint variable.
-
sdlRemoveHintCallback(
String? name, Pointer< hintsNativeFunction< callback, Pointer<SdlHintCallback> >NativeType> userdata) → void - Remove a function watching a particular hint.
-
sdlResetHint(
String? name) → bool hints - Reset a hint to the default value.
-
sdlResetHints(
) → void hints - Reset all hints to the default values.
-
sdlSetHint(
String? name, String? value) → bool hints - Set a hint with normal priority.
-
sdlSetHintWithPriority(
String? name, String? value, int priority) → bool hints - Set a hint with a specific priority.