pub struct MouseCaptureState { /* private fields */ }Expand description
State for mouse capture management
Tracks whether mouse capture is enabled and provides methods to toggle it. When mouse capture is disabled, the terminal allows native text selection (copy mode).
Implementations§
Source§impl MouseCaptureState
impl MouseCaptureState
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if mouse capture is currently enabled
Sourcepub fn is_copy_mode(&self) -> bool
pub fn is_copy_mode(&self) -> bool
Check if copy mode is active (mouse capture disabled)
When in copy mode, the terminal allows native text selection.
Sourcepub fn set_enabled(&mut self, enabled: bool)
pub fn set_enabled(&mut self, enabled: bool)
Set the mouse capture state
Trait Implementations§
Source§impl Clone for MouseCaptureState
impl Clone for MouseCaptureState
Source§fn clone(&self) -> MouseCaptureState
fn clone(&self) -> MouseCaptureState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MouseCaptureState
impl Debug for MouseCaptureState
Source§impl Default for MouseCaptureState
impl Default for MouseCaptureState
Source§impl PartialEq for MouseCaptureState
impl PartialEq for MouseCaptureState
impl Copy for MouseCaptureState
impl Eq for MouseCaptureState
impl StructuralPartialEq for MouseCaptureState
Auto Trait Implementations§
impl Freeze for MouseCaptureState
impl RefUnwindSafe for MouseCaptureState
impl Send for MouseCaptureState
impl Sync for MouseCaptureState
impl Unpin for MouseCaptureState
impl UnwindSafe for MouseCaptureState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more