pub struct LayoutProperties {
pub x: Option<Size>,
pub y: Option<Size>,
pub width: Option<Size>,
pub height: Option<Size>,
pub rotate: Option<Rotation>,
pub scale_x: Option<Percent>,
pub scale_y: Option<Percent>,
pub anchor_x: Option<Size>,
pub anchor_y: Option<Size>,
pub skew_x: Option<Rotation>,
pub skew_y: Option<Rotation>,
}Expand description
Unresolved layout inputs copied out of common properties before geometry calculation.
Fields§
§x: Option<Size>§y: Option<Size>§width: Option<Size>§height: Option<Size>§rotate: Option<Rotation>§scale_x: Option<Percent>§scale_y: Option<Percent>§anchor_x: Option<Size>§anchor_y: Option<Size>§skew_x: Option<Rotation>§skew_y: Option<Rotation>Implementations§
Source§impl LayoutProperties
impl LayoutProperties
Sourcepub fn fill() -> LayoutProperties
pub fn fill() -> LayoutProperties
Full-size defaults for nodes that should fill their containing bounds.
Trait Implementations§
Source§impl Clone for LayoutProperties
impl Clone for LayoutProperties
Source§fn clone(&self) -> LayoutProperties
fn clone(&self) -> LayoutProperties
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 LayoutProperties
impl Debug for LayoutProperties
Source§impl Default for LayoutProperties
impl Default for LayoutProperties
Source§fn default() -> LayoutProperties
fn default() -> LayoutProperties
Returns the “default value” for a type. Read more
Source§impl Interpolatable for LayoutProperties
impl Interpolatable for LayoutProperties
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Auto Trait Implementations§
impl Freeze for LayoutProperties
impl RefUnwindSafe for LayoutProperties
impl Send for LayoutProperties
impl Sync for LayoutProperties
impl Unpin for LayoutProperties
impl UnsafeUnpin for LayoutProperties
impl UnwindSafe for LayoutProperties
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.