pub struct SelectionFocus {
pub ifc_root_node_id: NodeId,
pub cursor: TextCursor,
pub mouse_position: LogicalPosition,
}Expand description
The focus point of a text selection - where the selection currently ends.
This is the movable point during a drag operation. It updates on every mouse move.
Fields§
§ifc_root_node_id: NodeIdThe IFC root node ID where selection currently ends. May differ from anchor’s IFC root during cross-node selection.
cursor: TextCursorThe exact cursor position within the IFC’s UnifiedLayout.
mouse_position: LogicalPositionCurrent mouse position in viewport coordinates.
Trait Implementations§
Source§impl Clone for SelectionFocus
impl Clone for SelectionFocus
Source§fn clone(&self) -> SelectionFocus
fn clone(&self) -> SelectionFocus
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 SelectionFocus
impl Debug for SelectionFocus
Source§impl PartialEq for SelectionFocus
impl PartialEq for SelectionFocus
impl StructuralPartialEq for SelectionFocus
Auto Trait Implementations§
impl Freeze for SelectionFocus
impl RefUnwindSafe for SelectionFocus
impl Send for SelectionFocus
impl Sync for SelectionFocus
impl Unpin for SelectionFocus
impl UnwindSafe for SelectionFocus
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