#[repr(C)]pub struct HitTestMetrics {
pub text_position: u32,
pub length: u32,
pub left: f32,
pub top: f32,
pub width: f32,
pub height: f32,
pub bidi_level: u32,
pub is_text: bool,
pub is_trimmed: bool,
}Available on Windows only.
Expand description
Describes the region obtained by a hit test.
Fields§
§text_position: u32The first text position within the hit region.
length: u32The number of text positions within the hit region.
left: f32The x-coordinate of the upper-left corner of the hit region.
top: f32The y-coordinate of the upper-left corner of the hit region.
width: f32The width of the hit region.
height: f32The height of the hit region.
bidi_level: u32The BIDI level of the text positions within the hit region.
is_text: boolNon-zero if the hit region contains text; otherwise, 0.
is_trimmed: boolNon-zero if the text range is trimmed; otherwise, 0.
Trait Implementations§
Source§impl Clone for HitTestMetrics
impl Clone for HitTestMetrics
Source§fn clone(&self) -> HitTestMetrics
fn clone(&self) -> HitTestMetrics
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 HitTestMetrics
impl Debug for HitTestMetrics
Source§impl From<DWRITE_HIT_TEST_METRICS> for HitTestMetrics
impl From<DWRITE_HIT_TEST_METRICS> for HitTestMetrics
Source§fn from(metrics: DWRITE_HIT_TEST_METRICS) -> Self
fn from(metrics: DWRITE_HIT_TEST_METRICS) -> Self
Converts to this type from the input type.
impl Copy for HitTestMetrics
Auto Trait Implementations§
impl Freeze for HitTestMetrics
impl RefUnwindSafe for HitTestMetrics
impl Send for HitTestMetrics
impl Sync for HitTestMetrics
impl Unpin for HitTestMetrics
impl UnwindSafe for HitTestMetrics
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, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.