Skip to main content

AnimatedIcons

Struct AnimatedIcons 

Source
pub struct AnimatedIcons;
Expand description

The bundled pairs, as one constant each — the same shape of thing Icons is for the static set.

These are the ones this framework needs itself. An application that needs another authors it with AnimatedIconData::custom, which is the same door IconData::custom opens for a static mark.

Implementations§

Source§

impl AnimatedIcons

Source

pub const MENU_CLOSE: AnimatedIconData

Three bars ↔ a cross. A drawer’s button: 0.0 shut, 1.0 open.

Source

pub const PLAY_PAUSE: AnimatedIconData

A triangle ↔ two bars. A transport control: 0.0 stopped, 1.0 playing.

It carries a direction: a play arrow points the way the reader reads, so it is turned round in a right-to-left order — and the pause it becomes is symmetrical, so nothing looks turned round at the end of it.

Source

pub const ADD_CLOSE: AnimatedIconData

A plus ↔ a cross. An add button that becomes the way to put away what it opened: 0.0 add, 1.0 dismiss.

Source

pub const EXPAND_COLLAPSE: AnimatedIconData

A chevron ↔ the same chevron, over. Down when shut, up when open.

Source

pub fn all() -> impl Iterator<Item = (&'static str, AnimatedIconData)>

All four, with their names — for a picker, or for a test that wants to say something about every pair there is.

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<Msg> IntoMsg<Msg> for Msg

Source§

fn defer(work: impl Fn() -> Msg + 'static) -> Msg

The message that stands for work’s result.
Source§

impl<T> MaybeSend for T
where T: Send,

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.