pub enum Tail {
None,
Dots(u8),
Spinner {
lit: Rgb,
unlit: Rgb,
},
Art {
width: i16,
height: i16,
frames: u8,
draw: fn(&mut dyn Sink, i16, i16, u8),
},
}Expand description
What follows the label and moves.
Variants§
None
Nothing: the label alone, breathing if the ink does.
Dots(u8)
Up to this many dots after the label (Loading, Loading.,
Loading.., …). The box has room for all of them, so the label does
not slide as they step.
Spinner
A ring of twelve lights chasing each other round a square: the head burns
at lit, a tail fades behind it, and every other light shows unlit. The
ring is square on the display, whatever the pixel aspect of the mode (see
Style::with_display), and its lights are drawn with the style’s
Blend.
Fields
Art
Animation the game draws itself, in a box of width x height pixels
(the widget is as big as that plus its padding). draw(sink, x, y, frame)
paints frame frame (0..frames) with its top-left at (x, y), using
rect or any GP0 packet; the box is already filled with the style’s ground.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tail
impl RefUnwindSafe for Tail
impl Send for Tail
impl Sync for Tail
impl Unpin for Tail
impl UnsafeUnpin for Tail
impl UnwindSafe for Tail
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)