pub struct MouseConfig {
pub copy_on_release: bool,
pub clear_on_outside_click: bool,
}Expand description
How SelectablePanel::handle_mouse should behave. Every field is a
per-application choice, so different consumers can wire the same panel up
differently. Start from MouseConfig::default and override what you want.
Fields§
§copy_on_release: boolCopy the selection to the clipboard when the left button is released.
true mirrors a typical terminal drag-select-to-copy; set it false
if you’d rather copy from an explicit key binding (call
SelectablePanel::copy_selection yourself).
clear_on_outside_click: boolClear the selection when the left button is pressed outside the
panel’s text area (a click elsewhere deselects). false leaves any
existing selection untouched on an outside click.
Trait Implementations§
Source§impl Clone for MouseConfig
impl Clone for MouseConfig
Source§fn clone(&self) -> MouseConfig
fn clone(&self) -> MouseConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MouseConfig
Source§impl Debug for MouseConfig
impl Debug for MouseConfig
Auto Trait Implementations§
impl Freeze for MouseConfig
impl RefUnwindSafe for MouseConfig
impl Send for MouseConfig
impl Sync for MouseConfig
impl Unpin for MouseConfig
impl UnsafeUnpin for MouseConfig
impl UnwindSafe for MouseConfig
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<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