Enum minifb::MouseMode [] [src]

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 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 !=.