ui/taskbar.rs#
Source: lib/ui/taskbar.rs
taskbar -- the app's taskbar / dock button (plat::taskbar): progress, a badge, jump list tasks
taskbar_progress(TaskbarProgress) -> bool TaskbarProgress::Normal(0.4), Paused(..),
Error(..), Indeterminate, None
taskbar_badge(n) -> bool n > 0: a red dot with the number on the button (Windows:
the overlay icon drawn here at the window's dpi, "99+"
above 99; Linux: the dock's own counter); 0 removes it
taskbar_tasks(&[JumpTask]) -> bool the jump list's tasks (Windows): each starts the
program with its arguments (AF_SINGLE_INSTANCE: they
arrive as UIC_OPEN); empty removes them
Headless runs (scripts, --shot) only print what they would show (plat::tray's dry run).
Call from the UI thread (frame / command), as everything of Ui.
impl Ui
fn taskbar_progress(&mut self, p: TaskbarProgress) -> boolshow progress on the app's taskbar button -> false: not shown herefn taskbar_badge(&mut self, n: u32) -> boola badge with n on the app's taskbar button (0: none) -> false: not shown herefn taskbar_tasks(&mut self, tasks: &[JumpTask]) -> boolthe tasks of the button's jump list (empty: none) -> false: no jump list here