Window.opacity

Wraps SDL_GetWindowOpacity (from SDL 2.0.5) which gets the opacity of the window

  1. float opacity()
    class Window
    const @property @trusted
    static if(sdlSupport >= SDLSupport.v2_0_5)
    float
    opacity
    ()
  2. void opacity(float newOpacity)

Return Value

Type: float

float indicating the opacity of the window from 0.0 (transparent) to 1.0 (opaque)

Throws

dsdl2.SDLException if failed to get the window's opacity

Meta