pub enum TrayIconEvent {
Activated {
position: Offset,
},
ContextMenuRequested {
position: Offset,
},
SecondaryActivated {
position: Offset,
},
DoubleClicked,
Scrolled {
delta: f64,
},
MenuSelected(MenuId),
}Expand description
What happened to a tray icon, as its system reports it: each system reports some of these.
Positions are in the coordinates of HostWindow::frame on macOS
and Windows; a Linux desktop gives its own, which on Wayland are often zero.
Variants§
Activated
The icon was clicked, or chosen from the keyboard.
ContextMenuRequested
The user asked for the icon’s menu: Windows’ right click, or its keyboard’s menu key.
SecondaryActivated
The icon was clicked with the middle button, where the desktop says so.
DoubleClicked
Scrolled
The wheel turned over the icon, by its steps.
MenuSelected(MenuId)
An item of the icon’s attached menu was chosen.
Trait Implementations§
Source§impl Clone for TrayIconEvent
impl Clone for TrayIconEvent
impl Copy for TrayIconEvent
Source§impl Debug for TrayIconEvent
impl Debug for TrayIconEvent
Source§impl PartialEq for TrayIconEvent
impl PartialEq for TrayIconEvent
impl StructuralPartialEq for TrayIconEvent
Auto Trait Implementations§
impl Freeze for TrayIconEvent
impl RefUnwindSafe for TrayIconEvent
impl Send for TrayIconEvent
impl Sync for TrayIconEvent
impl Unpin for TrayIconEvent
impl UnsafeUnpin for TrayIconEvent
impl UnwindSafe for TrayIconEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more