pub struct Click {
pub button: ClickButton,
pub x: u64,
pub y: u64,
}
Expand description
A click action.
Fields§
Indicates which mouse button was pressed during the click. One of left
, right
, wheel
, back
, or forward
.
x: u64
The x-coordinate where the click occurred.
y: u64
The y-coordinate where the click occurred.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Click
impl<'de> Deserialize<'de> for Click
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
impl Copy for Click
impl StructuralPartialEq for Click
Auto Trait Implementations§
impl Freeze for Click
impl RefUnwindSafe for Click
impl Send for Click
impl Sync for Click
impl Unpin for Click
impl UnwindSafe for Click
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