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.
Trait Implementations§
Source§impl Clone for NodeBounds
impl Clone for NodeBounds
Source§fn clone(&self) -> NodeBounds
fn clone(&self) -> NodeBounds
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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 Forget for NodeBounds
impl Freeze for NodeBounds
impl Move 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
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> ⓘ
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> ⓘ
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