Skip to main content

Module layout_struct

Module layout_struct 

Source
Expand description

Layout output types consumed by pipes and renderers.

The primary public types are RenderCommandOutput and its variants, plus TextDrawPayload for text fragments attached to element commands.

Pipes such as CotisLayoutToRenderListPipeForGenerics in cotis-pipes walk a RenderCommandOutput stream and decode each element’s custom payload into concrete draw commands.

§Internal types

The layout engine also defines tree and state types (LayoutElement, LayoutElementConfig, LayoutElementInfo, ChildWrapping, etc.) in crate-private submodules. These appear in the return type of CotisLayoutManager::get_cache_element for post-frame inspection but are not stable public API — their visibility is under review.

Note: layout-internal ChildWrapping (None / Text) is partially unrelated to the experimental child_wrapping field on cotis-defaults layout styles.

Structs§

RenderCommandClipEnd
Closes the clip region opened by the matching RenderCommandClipStart.
RenderCommandClipStart
Opens a clip region for subsequent RenderCommandOutput::Element commands.
RenderCommandOutputElement
Render data for one layout element.
TextDrawPayload
Text fragment attached to a RenderCommandOutputElement.

Enums§

RenderCommandOutput
One step in the layout-to-renderer command stream.