pub struct LayoutHull {
pub min_x: f64,
pub max_x: f64,
pub min_y: f64,
pub max_y: f64,
pub valid_x: bool,
pub valid_y: bool,
}Expand description
Per-axis local extents contributed by a node subtree for container measurement.
Coordinates are expressed in the node’s local layout space. Validity is tracked per axis so parent-dependent axes can be ignored without discarding the entire subtree.
Fields§
§min_x: f64§max_x: f64§min_y: f64§max_y: f64§valid_x: bool§valid_y: boolImplementations§
Source§impl LayoutHull
impl LayoutHull
pub fn from_bounds(bounds: (f64, f64)) -> Self
pub fn from_axis_ranges(x: Option<(f64, f64)>, y: Option<(f64, f64)>) -> Self
pub fn x_range(&self) -> Option<(f64, f64)>
pub fn y_range(&self) -> Option<(f64, f64)>
pub fn union(self, other: Self) -> Self
pub fn forward_extent_x(&self) -> Option<f64>
pub fn forward_extent_y(&self) -> Option<f64>
Trait Implementations§
Source§impl Clone for LayoutHull
impl Clone for LayoutHull
impl Copy for LayoutHull
Source§impl Debug for LayoutHull
impl Debug for LayoutHull
Source§impl Default for LayoutHull
impl Default for LayoutHull
Source§impl Interpolatable for LayoutHull
impl Interpolatable for LayoutHull
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl PartialEq for LayoutHull
impl PartialEq for LayoutHull
impl StructuralPartialEq for LayoutHull
Auto Trait Implementations§
impl Freeze for LayoutHull
impl RefUnwindSafe for LayoutHull
impl Send for LayoutHull
impl Sync for LayoutHull
impl Unpin for LayoutHull
impl UnsafeUnpin for LayoutHull
impl UnwindSafe for LayoutHull
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,
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.