SDL_GetNumberProperty

Get a number property from a group of properties.

You can use SDL_GetPropertyType() to query whether the property exists and is a number property.

extern (C) nothrow @nogc extern
SDL_GetNumberProperty

Parameters

props SDL_PropertiesID

the properties to query.

name const(char)*

the name of the property to query.

default_value Sint64

the default value of the property.

Return Value

Type: Sint64

The value of the property, or default_value if it is not set or not a number property.

Threadsafety: It is safe to call this function from any thread.

See Also

Meta