pub enum MouseMode {
Pass,
Clamp,
Discard,
}
Expand description
The different 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
impl StructuralPartialEq for MouseMode
Auto Trait Implementations
impl RefUnwindSafe for MouseMode
impl Send for MouseMode
impl Sync for MouseMode
impl Unpin for MouseMode
impl UnwindSafe for MouseMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more