pub struct NodeBounds {
pub at: String,
pub border: CanvasRect,
pub content: CanvasRect,
pub overflow: bool,
pub line_count: Option<u32>,
pub font_size: Option<f32>,
pub truncated: bool,
pub baselines: Option<Baselines>,
}Expand description
Where one layout node’s boxes lie, before its clip’s transform and node visuals.
Fields§
§at: StringIts path from the root, like root.children[1].
border: CanvasRectThe border box, as fractions of the picture.
content: CanvasRectThe content box, as fractions of the picture.
overflow: boolWhether its text, at its fitted size once clamped, is taller than its content box or splits a word, or an in-flow child reaches past its padding box. Also set for a text the text host refuses to draw, such as a box over 16,384 pixels a side; frames fail on it.
line_count: Option<u32>A text node’s line count; None for other nodes.
font_size: Option<f32>A text node’s font size as drawn, a fraction of the picture’s shorter side. None
for other nodes.
truncated: boolWhether a text node’s line_clamp discarded lines.
baselines: Option<Baselines>A text node’s first and last baselines as fractions of the picture height. None for
other nodes and empty text.