FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextInputMethodTextBounds

    struct · ferroui-base · v0.5.0

    struct TextInputMethodTextBounds
    

    One shaped text fragment and its transform to the semantic input owner.

    Keeping the local rectangle separate from its transform lets a platform transform its four corners before taking screen bounds. Taking a bounding box at each intermediate visual would inflate rotated text unnecessarily.

    View source

    Members

    rectangle

    rectangle: crate::Rect
    

    Source

    transform

    transform: crate::Matrix
    

    Source

    new

    const fn new(rectangle: Rect) -> Self
    

    A rectangle already expressed in the semantic owner's coordinates.

    Source

    with_transform

    const fn with_transform(rectangle: Rect, transform: Matrix) -> Self
    

    Source

    corners

    fn corners(self: &Self) -> [Point; 4]
    

    The actual fragment corners, in the semantic owner's coordinates.

    Source

    Trait implementations

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

    Availability

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