pub struct CursorConfinement(/* private fields */);Available on crate feature
ui only.Implementations§
Source§impl CursorConfinement
impl CursorConfinement
Sourcepub fn new(bounding_area: Rectangle) -> Result<Self>
pub fn new(bounding_area: Rectangle) -> Result<Self>
Globally confines the cursor to a rectangular area on the screen.
The confinement will be automatically released when CursorConfinement is dropped.
Sourcepub fn reapply(&self) -> Result<()>
pub fn reapply(&self) -> Result<()>
Reapply the corsor clipping.
This can be necessary since some operations automatically unclip the cursor.
pub fn remove() -> Result<()>
Trait Implementations§
Source§impl Debug for CursorConfinement
impl Debug for CursorConfinement
Auto Trait Implementations§
impl Freeze for CursorConfinement
impl RefUnwindSafe for CursorConfinement
impl Send for CursorConfinement
impl Sync for CursorConfinement
impl Unpin for CursorConfinement
impl UnwindSafe for CursorConfinement
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