pub enum MouseMode {
Pass,
Clamp,
Discard,
}
Expand description
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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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