Struct directwrite::text_layout::HitTestPoint
[−]
[src]
pub struct HitTestPoint { pub metrics: HitTestMetrics, pub is_inside: bool, pub is_trailing_hit: bool, }
Fields
metrics: HitTestMetrics
The 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: bool
An 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: bool
An 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
impl Copy for HitTestPoint
[src]
impl Clone for HitTestPoint
[src]
fn clone(&self) -> HitTestPoint
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more