Skip to content

Commit

Permalink
docs: update tray icon event documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed May 14, 2024
1 parent 2fb0059 commit c05e803
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ impl TrayIcon {
}
}

/// Describes a tray event emitted when a tray icon is clicked
/// Describes a tray icon event.
///
/// ## Platform-specific:
///
Expand Down Expand Up @@ -457,6 +457,7 @@ pub enum TrayIconEvent {
},
}

/// Describes the mouse button state.
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum MouseButtonState {
Expand All @@ -470,6 +471,7 @@ impl Default for MouseButtonState {
}
}

/// Describes which mouse button triggered the event..
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum MouseButton {
Expand Down

0 comments on commit c05e803

Please sign in to comment.