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>) -> Self
pub fn width(self, width: impl Into<Sizing>) -> Self
A crate::spec::Sizing, or a number of px, as on a spec.
Sourcepub fn height(self, height: impl Into<Sizing>) -> Self
pub fn height(self, height: impl Into<Sizing>) -> Self
A crate::spec::Sizing, or a number of px, as on a spec.
Sourcepub fn grow_width(self) -> Self
pub fn grow_width(self) -> Self
width(Sizing::GROW), as on a spec.
Sourcepub fn grow_height(self) -> Self
pub fn grow_height(self) -> Self
height(Sizing::GROW), as on a spec.
pub fn bg(self, bg: Color) -> Self
pub fn radius(self, radius: f32) -> Self
pub fn opacity(self, opacity: f32) -> Self
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