TextHitTestResult
struct · ferroui-base · v0.5.0
struct TextHitTestResult
Holds a hit test result from a text layout.
Members
new
const fn new(character_hit: CharacterHit, text_position: i32, is_inside: bool, is_trailing: bool) -> Self
character_hit
const fn character_hit(self: &Self) -> CharacterHit
Gets the character hit of the hit test result.
is_inside
const fn is_inside(self: &Self) -> bool
Gets a value indicating whether the point is inside the bounds of the text layout.
text_position
const fn text_position(self: &Self) -> i32
Gets the index of the hit character in the text.
is_trailing
const fn is_trailing(self: &Self) -> bool
Gets a value indicating whether the hit is on the trailing edge of the character.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.