RectangleClip
struct · ferroui-base · v0.5.0
struct RectangleClip
A clip that leaves visible a rectangle, with optional rounded corners,
in the coordinates of the visual it is set on (WinUI
Microsoft.UI.Composition.RectangleClip). Every member is animatable
(Left, Top, Right, Bottom, TopLeftRadius, TopRightRadius,
BottomLeftRadius, BottomRightRadius); the radii are elliptical
(WinUI Vector2).
Members
from_clipleftset_lefttopset_toprightset_rightbottomset_bottomtop_left_radiusset_top_left_radiustop_right_radiusset_top_right_radiusbottom_left_radiusset_bottom_left_radiusbottom_right_radiusset_bottom_right_radius
from_clip
fn from_clip(clip: &Rc<CompositionClip>) -> Option<RectangleClip>
The handle of clip as a rectangle clip, if it is one.
left
fn left(self: &Self) -> f32
set_left
fn set_left(self: &Self, value: f32)
top
fn top(self: &Self) -> f32
set_top
fn set_top(self: &Self, value: f32)
right
fn right(self: &Self) -> f32
set_right
fn set_right(self: &Self, value: f32)
bottom
fn bottom(self: &Self) -> f32
set_bottom
fn set_bottom(self: &Self, value: f32)
top_left_radius
fn top_left_radius(self: &Self) -> Vector
set_top_left_radius
fn set_top_left_radius(self: &Self, value: Vector)
top_right_radius
fn top_right_radius(self: &Self) -> Vector
set_top_right_radius
fn set_top_right_radius(self: &Self, value: Vector)
bottom_left_radius
fn bottom_left_radius(self: &Self) -> Vector
set_bottom_left_radius
fn set_bottom_left_radius(self: &Self, value: Vector)
bottom_right_radius
fn bottom_right_radius(self: &Self) -> Vector
set_bottom_right_radius
fn set_bottom_right_radius(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.