Window.brightness - multiple declarations
Function Window.brightness
Wraps SDL_GetWindowBrightness
which gets the window's brightness value
float brightness() @property @trusted const;
Returns
float
value from 0.0
to 1.0
indicating the window's brightness
Function Window.brightness
Wraps SDL_SetWindowBrightness
which sets the window's brightness value
void brightness
(
float newBrightness
) @property @trusted;
Parameters
Name | Description |
---|---|
newBrightness | float value specifying the window's brightness from 0.0 (darkest) to 1.0 (brightest) |
Throws
dsdl2
if failed to set the window's brightness value