CompositionRoundedRectangleGeometry
struct · ferroui-base · v0.5.0
struct CompositionRoundedRectangleGeometry
A rectangle with rounded corners (WinUI
Microsoft.UI.Composition.CompositionRoundedRectangleGeometry):
(offset, size) with the elliptical radii corner_radius, all
animatable (CornerRadius, Offset, Size). The radii are limited to
half the size.
Members
from_geometry
fn from_geometry(geometry: &Rc<CompositionGeometry>) -> Option<CompositionRoundedRectangleGeometry>
The handle of geometry as a rounded rectangle geometry, if it is one.
geometry
fn geometry(self: &Self) -> &Rc<CompositionGeometry>
The geometry as a CompositionGeometry.
corner_radius
fn corner_radius(self: &Self) -> Vector
The radii of the corners.
set_corner_radius
fn set_corner_radius(self: &Self, value: Vector)
offset
fn offset(self: &Self) -> Vector
The top left corner of the rectangle.
set_offset
fn set_offset(self: &Self, value: Vector)
size
fn size(self: &Self) -> Vector
The size of the rectangle.
set_size
fn set_size(self: &Self, value: Vector)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDeref
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.