[][src]Struct quicksilver::input::Mouse

pub struct Mouse { /* fields omitted */ }

A simple mouse cursor abstraction

Mice are owned and maintained a Window and can be accessed via the mouse function.

Methods

impl Mouse[src]

pub fn pos(&self) -> Vector[src]

The location of the cursor in the viewport space

pub fn wheel(&self) -> Vector[src]

The amount the wheel moved this frame

Trait Implementations

impl Eq for Mouse[src]

impl PartialEq<Mouse> for Mouse[src]

impl Clone for Mouse[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Mouse[src]

impl Index<MouseButton> for Mouse[src]

type Output = ButtonState

The returned type after indexing.

Auto Trait Implementations

impl Send for Mouse

impl Sync for Mouse

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]