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§
source§impl PartialEq for MouseMode
impl PartialEq for MouseMode
impl Copy for MouseMode
impl StructuralPartialEq for MouseMode
Auto Trait Implementations§
impl Freeze for MouseMode
impl RefUnwindSafe for MouseMode
impl Send for MouseMode
impl Sync for MouseMode
impl Unpin for MouseMode
impl UnwindSafe for MouseMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more