pub struct Appearance {
pub alpha: f32,
pub offset: [f32; 2],
pub scale: f32,
}Expand description
How a staggered UI element appears at one instant: multiply its alpha,
translate it by offset and scale it about its center by scale.
Fields§
§alpha: f32§offset: [f32; 2]§scale: f32Implementations§
Source§impl Appearance
impl Appearance
Sourcepub const SHOWN: Appearance
pub const SHOWN: Appearance
Fully shown, in place.
Sourcepub const HIDDEN: Appearance
pub const HIDDEN: Appearance
Fully hidden.
Trait Implementations§
Source§impl Clone for Appearance
impl Clone for Appearance
Source§fn clone(&self) -> Appearance
fn clone(&self) -> Appearance
Returns a duplicate 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 Appearance
impl Debug for Appearance
Source§impl PartialEq for Appearance
impl PartialEq for Appearance
impl Copy for Appearance
impl StructuralPartialEq for Appearance
Auto Trait Implementations§
impl Freeze for Appearance
impl RefUnwindSafe for Appearance
impl Send for Appearance
impl Sync for Appearance
impl Unpin for Appearance
impl UnwindSafe for Appearance
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