Enum minifb::MouseMode [] [src]

pub enum MouseMode {
    Pass,
    Clamp,
    Discard,
}

Key is used by the get key functions to check if some keys on the keyboard has been pressed

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 Copy for MouseMode
[src]

impl Clone for MouseMode
[src]

fn clone(&self) -> MouseMode

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl PartialEq for MouseMode
[src]

fn eq(&self, __arg_0: &MouseMode) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.