pub struct NodeBounds {
pub at: String,
pub border: CanvasRect,
pub content: CanvasRect,
pub overflow: bool,
pub line_count: Option<u32>,
pub baselines: Option<Baselines>,
}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.
baselines: Option<Baselines>A text node’s first and last baselines, as fractions of the picture’s
height: its content box’s top plus its text’s baselines. None for
other nodes and empty text.
Trait Implementations§
Source§impl Clone for NodeBounds
impl Clone for NodeBounds
Source§fn clone(&self) -> NodeBounds
fn clone(&self) -> NodeBounds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more