pub struct LabelSelectionState { /* private fields */ }Expand description
Handles text selection in labels (NOT in crate::TextEdit)s.
One state for all labels, because we only support text selection in one label at a time.
Implementations§
Source§impl LabelSelectionState
impl LabelSelectionState
pub fn load(ctx: &Context) -> LabelSelectionState
pub fn store(self, ctx: &Context)
pub fn has_selection(&self) -> bool
pub fn clear_selection(&mut self)
Trait Implementations§
Source§impl Clone for LabelSelectionState
impl Clone for LabelSelectionState
Source§fn clone(&self) -> LabelSelectionState
fn clone(&self) -> LabelSelectionState
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 moreSource§impl Debug for LabelSelectionState
impl Debug for LabelSelectionState
Source§impl Default for LabelSelectionState
impl Default for LabelSelectionState
Source§fn default() -> LabelSelectionState
fn default() -> LabelSelectionState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LabelSelectionState
impl RefUnwindSafe for LabelSelectionState
impl Send for LabelSelectionState
impl Sync for LabelSelectionState
impl Unpin for LabelSelectionState
impl UnsafeUnpin for LabelSelectionState
impl UnwindSafe for LabelSelectionState
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