#[repr(C)]pub struct TextSelectionDrag {
pub dom_id: DomId,
pub anchor_ifc_node: NodeId,
pub anchor_cursor: Option<TextCursor>,
pub start_mouse_position: LogicalPosition,
pub current_mouse_position: LogicalPosition,
pub auto_scroll_direction: AutoScrollDirection,
pub auto_scroll_container: Option<NodeId>,
}Expand description
Text selection drag state.
Tracks the anchor point (where selection started) and current position.
Fields§
§dom_id: DomIdDOM ID where the selection started
anchor_ifc_node: NodeIdThe IFC root node where selection started (e.g.,
element)
anchor_cursor: Option<TextCursor>The anchor cursor position (fixed during drag)
start_mouse_position: LogicalPositionMouse position where drag started
current_mouse_position: LogicalPositionCurrent mouse position
auto_scroll_direction: AutoScrollDirectionWhether we should auto-scroll (mouse near edge of scroll container)
auto_scroll_container: Option<NodeId>The scroll container that should be auto-scrolled (if any)
Trait Implementations§
Source§impl Clone for TextSelectionDrag
impl Clone for TextSelectionDrag
Source§fn clone(&self) -> TextSelectionDrag
fn clone(&self) -> TextSelectionDrag
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 TextSelectionDrag
impl Debug for TextSelectionDrag
Source§impl PartialEq for TextSelectionDrag
impl PartialEq for TextSelectionDrag
impl StructuralPartialEq for TextSelectionDrag
Auto Trait Implementations§
impl Freeze for TextSelectionDrag
impl RefUnwindSafe for TextSelectionDrag
impl Send for TextSelectionDrag
impl Sync for TextSelectionDrag
impl Unpin for TextSelectionDrag
impl UnwindSafe for TextSelectionDrag
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