pub enum ActivateRequest {
MenuItem {
address: String,
menu_path: String,
submenu_id: i32,
},
Default {
address: String,
x: i32,
y: i32,
},
Secondary {
address: String,
x: i32,
y: i32,
},
}
Expand description
A request to ‘activate’ one of the menu items, typically sent when it is clicked.
Variants§
MenuItem
Submenu ID
Default
Default activation for the tray. The parameter(x and y) represents screen coordinates and is to be considered an hint to the item where to show eventual windows (if any).
Secondary
Secondary activation(less important) for the tray. The parameter(x and y) represents screen coordinates and is to be considered an hint to the item where to show eventual windows (if any).
Trait Implementations§
Source§impl Clone for ActivateRequest
impl Clone for ActivateRequest
Source§fn clone(&self) -> ActivateRequest
fn clone(&self) -> ActivateRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ActivateRequest
impl RefUnwindSafe for ActivateRequest
impl Send for ActivateRequest
impl Sync for ActivateRequest
impl Unpin for ActivateRequest
impl UnwindSafe for ActivateRequest
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