pub struct ClickParam {
pub button: ClickButtonType,
pub x: i32,
pub y: i32,
}Expand description
A click action.
Fields§
Indicates which mouse button was pressed during the click. One of left,
right, wheel, back, or forward.
x: i32The x-coordinate where the click occurred.
y: i32The y-coordinate where the click occurred.
Trait Implementations§
Source§impl Clone for ClickParam
impl Clone for ClickParam
Source§fn clone(&self) -> ClickParam
fn clone(&self) -> ClickParam
Returns a duplicate 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 moreSource§impl Debug for ClickParam
impl Debug for ClickParam
Source§impl<'de> Deserialize<'de> for ClickParam
impl<'de> Deserialize<'de> for ClickParam
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClickParam
impl PartialEq for ClickParam
Source§impl Serialize for ClickParam
impl Serialize for ClickParam
impl StructuralPartialEq for ClickParam
Auto Trait Implementations§
impl Freeze for ClickParam
impl RefUnwindSafe for ClickParam
impl Send for ClickParam
impl Sync for ClickParam
impl Unpin for ClickParam
impl UnwindSafe for ClickParam
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