iced_core/window/user_attention.rs
1/// The type of user attention to request.
2///
3/// ## Platform-specific
4///
5/// - **X11:** Sets the WM's `XUrgencyHint`. No distinction between [`Critical`] and [`Informational`].
6///
7/// [`Critical`]: Self::Critical
8/// [`Informational`]: Self::Informational
9#[derive(Debug, Clone, Copy)]
10pub enum UserAttention {
11 /// ## Platform-specific
12 ///
13 /// - **macOS:** Bounces the dock icon until the application is in focus.
14 /// - **Windows:** Flashes both the window and the taskbar button until the application is in focus.
15 Critical,
16 /// ## Platform-specific
17 ///
18 /// - **macOS:** Bounces the dock icon once.
19 /// - **Windows:** Flashes the taskbar button until the application is in focus.
20 Informational,
21}