TransformedBounds
struct · ferroui-base · v0.5.0
struct TransformedBounds
Holds information about the bounds of a control, together with a transform and a clip.
Members
bounds
bounds: crate::Rect
The control's bounds.
clip
clip: crate::Rect
The clip rectangle, in global coordinates.
transform
transform: crate::Matrix
The transform that maps the control's bounds to global coordinates.
new
const fn new(bounds: Rect, clip: Rect, transform: Matrix) -> Self
Creates transformed bounds.
contains
fn contains(self: &Self, point: Point) -> bool
Whether the transformed bounds contain a point given in global coordinates.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.