pub struct NodeBounds {
pub at: String,
pub border: CanvasRect,
pub content: CanvasRect,
pub overflow: bool,
pub line_count: Option<u32>,
}Expand description
Where one layout node lies, before its clip’s transform and before node visuals: its layout boxes, not where it is drawn.
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 it overflows: its text is taller than its content box or splits a word, or an in-flow child reaches past its padding box.
line_count: Option<u32>A text node’s line count; None for other nodes.
Trait Implementations§
Source§impl Clone for NodeBounds
impl Clone for NodeBounds
Source§impl Debug for NodeBounds
impl Debug for NodeBounds
Source§impl PartialEq for NodeBounds
impl PartialEq for NodeBounds
impl StructuralPartialEq for NodeBounds
Auto Trait Implementations§
impl Freeze for NodeBounds
impl RefUnwindSafe for NodeBounds
impl Send for NodeBounds
impl Sync for NodeBounds
impl Unpin for NodeBounds
impl UnsafeUnpin for NodeBounds
impl UnwindSafe for NodeBounds
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more