[][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 Clone for Mouse[src]

impl Eq for Mouse[src]

impl PartialEq<Mouse> for Mouse[src]

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

impl Unpin for Mouse

impl UnwindSafe for Mouse

impl RefUnwindSafe for Mouse

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> SetParameter 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Downcast for T where
    T: Any

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