Skip to main content

Module window_surface

Module window_surface 

Source
Expand description

What draws into a window’s own surfaces besides egui, per window, as the part drawing it says it: the image viewport’s image surface (its format, colour space, route, or why it has none). The window registry (windows.list) shows it with each window; the part sets it each frame it draws and clears it when the window closes.

Also how the window itself was built for such a part (Transparency): a surface below egui shows through a transparent window only, so whoever builds a window that may show one says whether it is transparent, or why not (set_transparency); the part reads it before making its surface.

Experimental: may change in any release (docs/stability.md).

Enums§

Transparency
How a window was built for a surface below egui (the image surface): transparent, so it shows through, or opaque and why.

Functions§

get
What was said for viewport (set).
set
Says what draws into viewport’s own surface now; None forgets it (the window closed, or nothing draws there any more).
set_transparency
Says how viewport’s window was built (Transparency); None forgets it.
transparency
How viewport’s window was built, as said (set_transparency).