Window.opacity

Wraps SDL_SetWindowOpacity (from SDL 2.0.5) which sets the opacity of the window

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

Parameters

newOpacity float

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

Throws

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

Meta