[][src]Enum minifb::MouseMode

pub enum MouseMode {
    Pass,
    Clamp,
    Discard,
}

The diffrent modes that can be used to decide how mouse coordinates should be handled

Variants

Pass

Return mouse coords from outside of the window (may be negative)

Clamp

Clamp the mouse coordinates within the window

Discard

Discared if the mouse is outside the window

Trait Implementations

impl Clone for MouseMode[src]

impl Copy for MouseMode[src]

impl Debug for MouseMode[src]

impl PartialEq<MouseMode> for MouseMode[src]

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