[][src]Struct show_image::MouseButtonEvent

pub struct MouseButtonEvent {
    pub mouse_id: u32,
    pub button: MouseButton,
    pub state: MouseState,
    pub clicks: u8,
    pub position_x: i32,
    pub position_y: i32,
}

Information describing a mouse button event.

Fields

mouse_id: u32

The mouse ID identifying which mouse triggered the event.

button: MouseButton

The button that triggered the event.

state: MouseState

State after triggering the event.

clicks: u8

Number of clicks that happened.

position_x: i32

The X coordinate of the mouse relative to the window.

position_y: i32

The Y coordinate of the mouse relative to the window.

Trait Implementations

impl Clone for MouseButtonEvent[src]

impl Debug for MouseButtonEvent[src]

impl Eq for MouseButtonEvent[src]

impl PartialEq<MouseButtonEvent> for MouseButtonEvent[src]

impl StructuralEq for MouseButtonEvent[src]

impl StructuralPartialEq for MouseButtonEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.