Struct MouseOutput
pub struct MouseOutput {
pub pressed_buttons: u8,
pub x: i8,
pub y: i8,
pub vertical_scroll: i8,
pub horizontal_scroll: i8,
}Expand description
Struct for the mouse output.
Fields§
Bitmask of pressed buttons.
x: i8X direction.
y: i8Y direction.
vertical_scroll: i8Vertical scroll.
horizontal_scroll: i8Horizontal scroll.
Implementations§
§impl MouseOutput
impl MouseOutput
pub const NO_OUTPUT: MouseOutput
pub const NO_OUTPUT: MouseOutput
A mouse output with no buttons pressed and no movement.
pub fn combine(&self, other: &MouseOutput) -> MouseOutput
pub fn combine(&self, other: &MouseOutput) -> MouseOutput
Combines two mouse output values into one.
Trait Implementations§
§impl Clone for MouseOutput
impl Clone for MouseOutput
§fn clone(&self) -> MouseOutput
fn clone(&self) -> MouseOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MouseOutput
§impl Debug for MouseOutput
impl Debug for MouseOutput
§impl<'de> Deserialize<'de> for MouseOutput
impl<'de> Deserialize<'de> for MouseOutput
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MouseOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MouseOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MouseOutput
§impl PartialEq for MouseOutput
impl PartialEq for MouseOutput
§impl Serialize for MouseOutput
impl Serialize for MouseOutput
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MouseOutput
Auto Trait Implementations§
impl Freeze for MouseOutput
impl RefUnwindSafe for MouseOutput
impl Send for MouseOutput
impl Sync for MouseOutput
impl Unpin for MouseOutput
impl UnsafeUnpin for MouseOutput
impl UnwindSafe for MouseOutput
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