#[repr(C)]pub struct TrayEvent {
pub kind: TrayEventType,
pub menu_command: u32,
pub scroll_delta: i32,
pub scroll_axis: TrayScrollAxis,
}Expand description
One thing that happened on the tray icon.
Fields§
§kind: TrayEventTypeSet for TrayEventType::MenuItem; the chosen item’s command id.
scroll_delta: i32Set for TrayEventType::Scroll.
scroll_axis: TrayScrollAxisImplementations§
Trait Implementations§
impl Copy for TrayEvent
impl Eq for TrayEvent
Source§impl Ord for TrayEvent
impl Ord for TrayEvent
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for TrayEvent
impl PartialOrd for TrayEvent
impl StructuralPartialEq for TrayEvent
Auto Trait Implementations§
impl Freeze for TrayEvent
impl RefUnwindSafe for TrayEvent
impl Send for TrayEvent
impl Sync for TrayEvent
impl Unpin for TrayEvent
impl UnsafeUnpin for TrayEvent
impl UnwindSafe for TrayEvent
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