Struct pax_runtime::layout::LayoutProperties
source · 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>,
}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§
Trait Implementations§
source§impl Clone for LayoutProperties
impl Clone for LayoutProperties
source§fn clone(&self) -> LayoutProperties
fn clone(&self) -> LayoutProperties
Returns a copy of the value. Read more
1.0.0 · 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
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.