Modules§
Macros§
Structs§
- Breakable
Draw - Breakable
Measure - DrawCtx
- Element
Size - First
Location Usage Ctx - Layer
- Line
Dash Pattern - ISO 32000-1:2008 8.4.3.6
- Line
Style - Location
- A position for an element to render at. This doesn’t include the width at the moment, as this would make things much more complicated. The line breaking iterator wouldn’t work in its current form for example. Things are much easier if an element can make width related calculations in the beginning an doesn’t have to recalculate them on a page break.
- Measure
Ctx - Page
- Text
Pieces Cache - A data structure that holds cached text pieces (shaped and unicode-segmentend such that it is ready for line breaking). This type gets passed around in the contexts and is needed by the crate::elements::text::Text and crate::elements::rich_text::RichText elements. Currently only Self::new is public for API stability reasons.
- Width
Constraint
Enums§
- First
Location Usage - Line
CapStyle - ISO 32000-1:2008 8.4.3.3
Traits§
- Composite
Element - Composite
Element Callback - Element
- Rules: Width returned from measure has to be matched in draw given the same constraint (even if there’s some preferred height).