pub struct SelectableTextState {
pub selection_anchor: usize,
pub caret: usize,
pub affinity: CaretAffinity,
pub preferred_x: Option<Px>,
pub dragging: bool,
pub last_pointer_pos: Option<Point>,
pub pointer_down_pos: Option<Point>,
pub pending_span_activation: Option<SelectableTextSpanActivation>,
pub pending_span_click_count: u8,
pub interactive_span_bounds: Vec<SelectableTextInteractiveSpanBounds>,
}Fields§
§selection_anchor: usize§caret: usize§affinity: CaretAffinity§preferred_x: Option<Px>§dragging: bool§last_pointer_pos: Option<Point>§pointer_down_pos: Option<Point>§pending_span_activation: Option<SelectableTextSpanActivation>§pending_span_click_count: u8§interactive_span_bounds: Vec<SelectableTextInteractiveSpanBounds>Trait Implementations§
Source§impl Clone for SelectableTextState
impl Clone for SelectableTextState
Source§fn clone(&self) -> SelectableTextState
fn clone(&self) -> SelectableTextState
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 SelectableTextState
impl Debug for SelectableTextState
Auto Trait Implementations§
impl Freeze for SelectableTextState
impl RefUnwindSafe for SelectableTextState
impl Send for SelectableTextState
impl Sync for SelectableTextState
impl Unpin for SelectableTextState
impl UnsafeUnpin for SelectableTextState
impl UnwindSafe for SelectableTextState
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