[][src]Enum launchy::CanvasMessage

pub enum CanvasMessage {
    Press {
        x: u32,
        y: u32,
    },
    Release {
        x: u32,
        y: u32,
    },
}

Variants

Press

Fields of Press

x: u32y: u32
Release

Fields of Release

x: u32y: u32

Implementations

impl CanvasMessage[src]

pub fn x(&self) -> u32[src]

Retrieves the x coordinate of this message, no matter if this is a press or a release message

pub fn y(&self) -> u32[src]

Retrieves the y coordinate of this message, no matter if this is a press or a release message

pub fn pad(&self) -> Pad[src]

pub fn is_press(&self) -> bool[src]

Returns whether this is a press message

pub fn is_release(&self) -> bool[src]

Returns whether this is a release message

Trait Implementations

impl Clone for CanvasMessage[src]

impl Debug for CanvasMessage[src]

impl Eq for CanvasMessage[src]

impl Hash for CanvasMessage[src]

impl PartialEq<CanvasMessage> for CanvasMessage[src]

impl StructuralEq for CanvasMessage[src]

impl StructuralPartialEq for CanvasMessage[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> 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.