Struct directwrite::text_layout::HitTestPoint [] [src]

pub struct HitTestPoint {
    pub metrics: HitTestMetrics,
    pub is_inside: bool,
    pub is_trailing_hit: bool,
}

Fields

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.

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.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more