i_slint_core

Module item_rendering

Source
Expand description

module for rendering the tree of items

Structs§

  • This structure must be present in items that are Rendered and contains information. Used by the backend.
  • A region composed of a few rectangles that need to be redrawn.
  • A per-item cache.
  • Put this structure in the renderer to help with partial rendering
  • This struct holds the state of the partial renderer between different frames, in particular the cache of the bounding rect of each item. This permits a more fine-grained computation of the region that needs to be repainted.

Enums§

Traits§

  • Trait used to render each items.
  • Trait for an item that represent a Rectangle to the Renderer
  • Trait for an item that represents an Image towards the renderer
  • Trait for an item that represents an Text towards the renderer

Functions§

  • Return true if the item might be a clipping item
  • Compute the bounding rect of all children. This does /not/ include item’s own bounding rect. Remember to run this via evaluate_no_tracking.
  • Renders the tree of items that component holds, using the specified renderer. Rendering is done relative to the specified origin.
  • Renders the children of the item with the specified index into the renderer.

Type Aliases§