logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetBooleanProperty - Get a boolean property from a group of properties.

Availability

       This function is available since SDL 3.2.0.

Description

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

Function Parameters

props  the properties to query.

       name   the name of the property to query.

       default_value
              the default value of the property.

Header File

       Defined in SDL3/SDL_properties.h

Name

       SDL_GetBooleanProperty - Get a boolean property from a group of properties.

Return Value

       Returns the value of the property, or default_value if it is not set or not a boolean property.

See Also

(3), SDL_GetPropertyType(3), (3), SDL_HasProperty(3), (3), SDL_SetBooleanProperty(3)

Simple Directmedia Layer                           SDL 3.2.10                          SDL_GetBooleanProperty(3)

Synopsis

#include"SDL3/SDL.h"boolSDL_GetBooleanProperty(SDL_PropertiesIDprops,constchar*name,booldefault_value);

Thread Safety

       It is safe to call this function from any thread.

See Also