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.
Members
rectangle
rectangle: crate::Rect
transform
transform: crate::Matrix
new
const fn new(rectangle: Rect) -> Self
A rectangle already expressed in the semantic owner's coordinates.
with_transform
const fn with_transform(rectangle: Rect, transform: Matrix) -> Self
corners
fn corners(self: &Self) -> [Point; 4]
The actual fragment corners, in the semantic owner's coordinates.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.