[][src]Struct conrod_core::event::Click

pub struct Click {
    pub button: MouseButton,
    pub xy: Point,
    pub modifiers: ModifierKey,
}

Contains all the relevant information for a mouse click.

Fields

button: MouseButton

Which mouse button was clicked

xy: Point

The position at which the mouse was released.

modifiers: ModifierKey

Which modifier keys, if any, that were being held down when the user clicked

Implementations

impl Click[src]

pub fn relative_to(&self, xy: Point) -> Click[src]

Returns a copy of the Click relative to the given xy

Trait Implementations

impl Clone for Click[src]

impl Copy for Click[src]

impl Debug for Click[src]

impl From<Click> for Widget[src]

impl PartialEq<Click> for Click[src]

impl StructuralPartialEq for Click[src]

Auto Trait Implementations

impl RefUnwindSafe for Click

impl Send for Click

impl Sync for Click

impl Unpin for Click

impl UnwindSafe for Click

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> Style for T where
    T: Any + Debug + PartialEq<T>, 
[src]

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.