pub struct Enter {
pub dx: f32,
pub dy: f32,
pub slots: Slots,
}Expand description
Where a node’s slots start on first sight. Every field is optional: a
slot enter doesn’t name simply snaps as it always did. Derefs to its
Slots, so enter.bg reads the slot.
Fields§
§dx: f32Position offset (logical px) the node eases in from — dx: -300
slides in from the left.
dy: f32§slots: SlotsWidth, height, bg, radius and opacity — the slots a keyframe stop names too.
Implementations§
Source§impl Enter
impl Enter
Sourcepub fn width(self, width: impl Into<Sizing>) -> Enter
pub fn width(self, width: impl Into<Sizing>) -> Enter
A crate::spec::Sizing, or a number of px, as on a spec.
Sourcepub fn height(self, height: impl Into<Sizing>) -> Enter
pub fn height(self, height: impl Into<Sizing>) -> Enter
A crate::spec::Sizing, or a number of px, as on a spec.
Sourcepub fn grow_width(self) -> Enter
pub fn grow_width(self) -> Enter
width(Sizing::GROW), as on a spec.
Sourcepub fn grow_height(self) -> Enter
pub fn grow_height(self) -> Enter
height(Sizing::GROW), as on a spec.
pub fn bg(self, bg: Color) -> Enter
pub fn radius(self, radius: f32) -> Enter
pub fn opacity(self, opacity: f32) -> Enter
Trait Implementations§
impl Copy for Enter
impl StructuralPartialEq for Enter
Auto Trait Implementations§
impl Freeze for Enter
impl RefUnwindSafe for Enter
impl Send for Enter
impl Sync for Enter
impl Unpin for Enter
impl UnsafeUnpin for Enter
impl UnwindSafe for Enter
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.