pub struct HitTestPoint {
pub metrics: HitTestMetrics,
pub is_inside: bool,
pub is_trailing_hit: bool,
}Available on Windows only.
Expand description
Results from calling hit_test_point on a TextLayout.
Fields§
§metrics: HitTestMetricsThe output geometry fully enclosing the hit-test location. When is_inside is set to false, this structure represents the geometry enclosing the edge closest to the hit-test location.
is_inside: boolAn output flag that indicates whether the hit-test location is inside the text string. When false, the position nearest the text’s edge is returned.
is_trailing_hit: boolAn output flag that indicates whether the hit-test location is at the leading or the trailing side of the character. When is_inside is set to false, this value is set according to the output hitTestMetrics->textPosition value to represent the edge closest to the hit-test location.
Trait Implementations§
Source§impl Clone for HitTestPoint
impl Clone for HitTestPoint
Source§fn clone(&self) -> HitTestPoint
fn clone(&self) -> HitTestPoint
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 moreimpl Copy for HitTestPoint
Auto Trait Implementations§
impl Freeze for HitTestPoint
impl RefUnwindSafe for HitTestPoint
impl Send for HitTestPoint
impl Sync for HitTestPoint
impl Unpin for HitTestPoint
impl UnwindSafe for HitTestPoint
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.