Expand description
Common base for elements that can be drawn by a Renderer
A RenderElement defines what should be drawn where.
Additionally it provides the foundation for effective damage tracked rendering
by allowing to query for damage between two CommitCounters.
For specialized renderers it can optionally provide access to the UnderlyingStorage
of the element.
Out of the box smithay provides the following elements
memory- Memory based render elementtexture- Texture based render elementsurface- Wayland surface render elementsolid- Solid color render element
The render_elements! macro provides an easy way to aggregate multiple different RenderElements
into a single enum.
See the damage module for more information on
damage tracking.
Modules§
- memory
- Element to render from RGBA memory
- solid
- Element to render a solid color
- surface
wayland_frontend - Element to render a wayland surface
- texture
- Element to render a texture
- utils
- Utilities and helpers around the
Elementtrait.
Macros§
- render_
elements - Aggregate multiple types implementing
RenderElementinto a single enum type
Structs§
- Id
- A unique id for a
RenderElement - Namespaced
Element Elementwrapper namespacing theIdof the internal element.- Primary
Scanout Output - Holds the primary scanout output for a surface
- Render
Element State - Defines the element render state after rendering
- Render
Element States - Holds the states for a set of
RenderElements - WeakId
- A weak reference to a unique id for a
RenderElement - Wrap
- New-type wrapper for wrapping owned elements in render_elements!
Enums§
- Kind
- Defines the kind of an
Element - Render
Element Presentation State - Defines the presentation state of an element after rendering
- Rendering
Reason - Defines the (optional) reason why a
Elementwas selected for rendering instead of direct scan-out - Underlying
Storage - The underlying storage for a element
Traits§
- AsRender
Elements - Types that can be converted into
RenderElements - Element
- A single element
- Render
Element - A single render element
Functions§
- default_
primary_ scanout_ output_ compare - Default function for primary scan-out selection