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
impl AnimatedIcons
Sourcepub const MENU_CLOSE: AnimatedIconData
pub const MENU_CLOSE: AnimatedIconData
Three bars ↔ a cross. A drawer’s button: 0.0 shut, 1.0 open.
Sourcepub const PLAY_PAUSE: AnimatedIconData
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.
Sourcepub const ADD_CLOSE: AnimatedIconData
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.
Sourcepub const EXPAND_COLLAPSE: AnimatedIconData
pub const EXPAND_COLLAPSE: AnimatedIconData
A chevron ↔ the same chevron, over. Down when shut, up when open.
Sourcepub fn all() -> impl Iterator<Item = (&'static str, AnimatedIconData)>
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.