pub struct HitTestResult {
pub position: usize,
pub block_id: usize,
pub offset_in_block: usize,
pub region: HitRegion,
}Expand description
Result of [Typesetter::hit_test] -maps a screen-space point to a
document position.
Fields§
§position: usizeAbsolute character position in the document.
block_id: usizeWhich block (paragraph) was hit, identified by stable block ID.
offset_in_block: usizeCharacter offset within the block (0 = start of block).
region: HitRegionWhat region of the layout was hit.
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