pub struct SessionTextTarget {
pub anchor: [f32; 2],
pub focus: [f32; 2],
}Expand description
A semantic text occurrence resolved to lane-local pointer coordinates.
Hosts use this for find-to-select and automation without learning a
document engine’s DOM ids or text-layout representation. Driving these
points through DocumentSession::pointer_down,
DocumentSession::pointer_move, and DocumentSession::pointer_up still
exercises the ordinary input path; this is target resolution, not a second
selection mutation API.
Fields§
§anchor: [f32; 2]§focus: [f32; 2]Trait Implementations§
Source§impl Clone for SessionTextTarget
impl Clone for SessionTextTarget
impl Copy for SessionTextTarget
Source§impl Debug for SessionTextTarget
impl Debug for SessionTextTarget
Source§impl PartialEq for SessionTextTarget
impl PartialEq for SessionTextTarget
impl StructuralPartialEq for SessionTextTarget
Auto Trait Implementations§
impl Forget for SessionTextTarget
impl Freeze for SessionTextTarget
impl Move for SessionTextTarget
impl RefUnwindSafe for SessionTextTarget
impl Send for SessionTextTarget
impl Sync for SessionTextTarget
impl Unpin for SessionTextTarget
impl UnsafeUnpin for SessionTextTarget
impl UnwindSafe for SessionTextTarget
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