Skip to main content

AnimationOptions

Struct AnimationOptions 

Source
pub struct AnimationOptions {
    pub snap_to_grid: bool,
    pub tick_hz: Option<u32>,
    pub position_tolerance_px: Option<i32>,
    pub before_flags: Option<FolderFlagOp>,
    pub after_flags: Option<FolderFlagOp>,
    pub force_fallback: bool,
    pub render_options: OverlayRenderOptions,
}
Expand description

Global options that apply to every icon in an animation batch.

Fields§

§snap_to_grid: bool

Align destinations to available grid cells before preparation. Protects stationary icons and resolves target conflicts; never changes Shell flags. Defaults to false. Failures occur before artwork, flags or position writes.

§tick_hz: Option<u32>

Tick rate in Hz. Defaults to 100 (matching the legacy 10 ms step).

§position_tolerance_px: Option<i32>

Distance threshold in pixels below which an icon is considered “at target” and dropped from the active set. Defaults to 10 (matching the legacy POSITION_ERROR_VALUE).

§before_flags: Option<FolderFlagOp>

Optional folder-flag operation applied before the animation starts.

§after_flags: Option<FolderFlagOp>

Optional folder-flag operation applied after the animation ends (regardless of success or user-triggered stop).

§force_fallback: bool

Force the engine to skip the overlay entirely and take the “loud warning + direct teleport” fallback path.

Lets tests and the animate_direct demo binary exercise the fallback without needing a real overlay failure. Defaults to false — normal callers get the overlay animation.

§render_options: OverlayRenderOptions

Feature toggles for the overlay renderer’s decoration passes (label text, shortcut-arrow overlay, admin shield overlay). Defaults to OverlayRenderOptions::all_enabled — every decoration Explorer draws is drawn on the overlay too.

Trait Implementations§

Source§

impl Clone for AnimationOptions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AnimationOptions

Source§

impl Debug for AnimationOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AnimationOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for AnimationOptions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AnimationOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more