pub struct HitTestTextPosition {
pub point_x: f32,
pub point_y: f32,
pub metrics: HitTestMetrics,
}Available on Windows only.
Expand description
Results from calling hit_test_text_position on a TextLayout.
Fields§
§point_x: f32The output pixel location X, relative to the top-left location of the layout box.
point_y: f32The output pixel location Y, relative to the top-left location of the layout box.
metrics: HitTestMetricsThe output geometry fully enclosing the specified text position.
Trait Implementations§
Source§impl Clone for HitTestTextPosition
impl Clone for HitTestTextPosition
Source§fn clone(&self) -> HitTestTextPosition
fn clone(&self) -> HitTestTextPosition
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 HitTestTextPosition
Auto Trait Implementations§
impl Freeze for HitTestTextPosition
impl RefUnwindSafe for HitTestTextPosition
impl Send for HitTestTextPosition
impl Sync for HitTestTextPosition
impl Unpin for HitTestTextPosition
impl UnwindSafe for HitTestTextPosition
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.