Window.opacity - multiple declarations
Function Window.opacity
Wraps SDL_GetWindowOpacity (from SDL 2.0.5) which gets the opacity of the window
float opacity() @property @trusted const;
Returns
float indicating the opacity of the window from 0.0 (transparent) to 1.0 (opaque)
Throws
dsdl if failed to get the window's opacity
Function Window.opacity
Wraps SDL_SetWindowOpacity (from SDL 2.0.5) which sets the opacity of the window
void opacity
(
float newOpacity
) @property @trusted;
Parameters
| Name | Description |
|---|---|
| newOpacity | float indicating the opacity of the window from 0.0 (transparent) to 1.0 (opaque) |
Throws
dsdl if failed to set the window's opacity