FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextHitTestResult

    struct · ferroui-base · v0.5.0

    struct TextHitTestResult
    

    Holds a hit test result from a text layout.

    View source

    Members

    new

    const fn new(character_hit: CharacterHit, text_position: i32, is_inside: bool, is_trailing: bool) -> Self
    

    Source

    character_hit

    const fn character_hit(self: &Self) -> CharacterHit
    

    Gets the character hit of the hit test result.

    Source

    is_inside

    const fn is_inside(self: &Self) -> bool
    

    Gets a value indicating whether the point is inside the bounds of the text layout.

    Source

    text_position

    const fn text_position(self: &Self) -> i32
    

    Gets the index of the hit character in the text.

    Source

    is_trailing

    const fn is_trailing(self: &Self) -> bool
    

    Gets a value indicating whether the hit is on the trailing edge of the character.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.