pub struct HitTestResult {
pub cluster_index: usize,
pub caret: CaretPosition,
pub is_exact: bool,
}Expand description
Result of hit-testing a visual horizontal coordinate against a text run.
Fields§
§cluster_index: usizeIndex of the hit text cluster.
caret: CaretPositionExact caret location and affinity.
is_exact: boolWhether the visual coordinate fell strictly inside the run’s bounds.
Trait Implementations§
Source§impl Clone for HitTestResult
impl Clone for HitTestResult
impl Copy for HitTestResult
Source§impl Debug for HitTestResult
impl Debug for HitTestResult
Source§impl PartialEq for HitTestResult
impl PartialEq for HitTestResult
impl StructuralPartialEq for HitTestResult
Auto Trait Implementations§
impl Freeze for HitTestResult
impl RefUnwindSafe for HitTestResult
impl Send for HitTestResult
impl Sync for HitTestResult
impl Unpin for HitTestResult
impl UnsafeUnpin for HitTestResult
impl UnwindSafe for HitTestResult
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