Window.brightness

Wraps SDL_SetWindowBrightness which sets the window's brightness value

  1. float brightness()
  2. void brightness(float newBrightness)
    class Window
    @property @trusted
    void
    brightness

Parameters

newBrightness float

float value specifying the window's brightness from 0.0 (darkest) to 1.0 (brightest)

Throws

dsdl2.SDLException if failed to set the window's brightness value

Meta