Modules§
Structs§
- Border
Segment Info - Information about how to cache a border segment, along with the current render task cache entry.
- Brush
Segment - Brush
Segmentation - Clip
Corner 🔒 - Clip
Data - Clip
Rect 🔒 - Clip
Task Index - Deferred
Resolve - For external images, it’s not possible to know the UV coords of the image (or the image data itself) until the render thread receives the frame and issues callbacks to the client application. For external images that are visible, a DeferredResolve is created that is stored in the frame. This allows the render thread to iterate this list and update any changed texture data and update the UV rect. Any filtering is handled externally for NativeTexture external images.
- Nine
Patch Descriptor - A hashable descriptor for nine-patches, used by image and gradient borders.
- Picture
Index - Point
Key - A hashable point for using as a key during primitive interning.
- Polygon
Key - To create a fixed-size representation of a polygon, we use a fixed number of points. Our initialization method restricts us to values <= 32. If our constant POLYGON_CLIP_VERTEX_MAX is > 32, the Rust compiler will complain.
- PrimKey
- Prim
KeyCommon Data - A hashable float for using as a key during primitive interning.
- Prim
Template - Prim
Template Common Data - Primitive
Frame Scratch - Per-frame scratch storage. All fields are cleared every frame in
begin_frame. Anything written here lives only for the current frame. - Primitive
Instance - Primitive
Instance Index - Primitive
Opacity - Primitive
Retained - State that lives strictly longer than a single frame and is not tied
to scene lifetime. These fields manage their own trim/eviction policy
rather than being cleared by
begin_frameorrecycle. - Primitive
Scene Cache - Per-scene cache. Now empty — the originally memoized fields have migrated to per-frame storage. Kept as a placeholder for any future scene-stable state and so the lifetime invariant on PrimitiveScratchBuffer (frame / scene / retained) remains visible at the type level; a follow-up may drop it entirely.
- Primitive
Scratch Buffer - Contains various vecs of data that is used only during frame building, where we want to recycle the memory each new display list, to avoid constantly re-allocating and moving memory around. Written during primitive preparation, and read during batching.
- Primitive
Store - Primitive
Store Stats - RectKey
- Side
Offsets Key - A hashable SideOffset2D that can be used in primitive keys.
- SizeKey
- A hashable size for using as a key during primitive interning.
- Vector
Key - A hashable vec for using as a key during primitive interning.
- Visible
Mask Image Tile
Enums§
- Clip
Mask Kind - Represents the visibility state of a segment (wrt clip masks).
- Primitive
Kind
Constants§
Traits§
- Internable
Primitive - Trait for primitives that are directly internable. see SceneBuilder::add_primitive