pub struct RectangleClip(/* private fields */);Expand description
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).
Implementations§
Source§impl RectangleClip
impl RectangleClip
Sourcepub fn from_clip(clip: &Rc<CompositionClip>) -> Option<RectangleClip>
pub fn from_clip(clip: &Rc<CompositionClip>) -> Option<RectangleClip>
The handle of clip as a rectangle clip, if it is one.
pub fn left(&self) -> f32
pub fn set_left(&self, value: f32)
pub fn top(&self) -> f32
pub fn set_top(&self, value: f32)
pub fn right(&self) -> f32
pub fn set_right(&self, value: f32)
pub fn bottom(&self) -> f32
pub fn set_bottom(&self, value: f32)
pub fn top_left_radius(&self) -> Vector
pub fn set_top_left_radius(&self, value: Vector)
pub fn top_right_radius(&self) -> Vector
pub fn set_top_right_radius(&self, value: Vector)
pub fn bottom_left_radius(&self) -> Vector
pub fn set_bottom_left_radius(&self, value: Vector)
pub fn bottom_right_radius(&self) -> Vector
pub fn set_bottom_right_radius(&self, value: Vector)
Trait Implementations§
Source§impl Clone for RectangleClip
impl Clone for RectangleClip
Source§impl Deref for RectangleClip
impl Deref for RectangleClip
Source§type Target = Rc<CompositionClip>
type Target = Rc<CompositionClip>
The resulting type after dereferencing.
Source§fn deref(&self) -> &Rc<CompositionClip>
fn deref(&self) -> &Rc<CompositionClip>
Dereferences the value.
Auto Trait Implementations§
impl !RefUnwindSafe for RectangleClip
impl !Send for RectangleClip
impl !Sync for RectangleClip
impl !UnwindSafe for RectangleClip
impl Freeze for RectangleClip
impl Unpin for RectangleClip
impl UnsafeUnpin for RectangleClip
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more