pub struct CompositionRoundedRectangleGeometry(/* private fields */);Expand description
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.
Implementations§
Source§impl CompositionRoundedRectangleGeometry
impl CompositionRoundedRectangleGeometry
Sourcepub fn from_geometry(
geometry: &Rc<CompositionGeometry>,
) -> Option<CompositionRoundedRectangleGeometry>
pub fn from_geometry( geometry: &Rc<CompositionGeometry>, ) -> Option<CompositionRoundedRectangleGeometry>
The handle of geometry as a rounded rectangle geometry, if it is one.
Sourcepub fn geometry(&self) -> &Rc<CompositionGeometry>
pub fn geometry(&self) -> &Rc<CompositionGeometry>
The geometry as a CompositionGeometry.
Source§impl CompositionRoundedRectangleGeometry
impl CompositionRoundedRectangleGeometry
Sourcepub fn corner_radius(&self) -> Vector
pub fn corner_radius(&self) -> Vector
The radii of the corners.
pub fn set_corner_radius(&self, value: Vector)
pub fn set_offset(&self, value: Vector)
pub fn set_size(&self, value: Vector)
Trait Implementations§
Source§impl Deref for CompositionRoundedRectangleGeometry
impl Deref for CompositionRoundedRectangleGeometry
Source§type Target = Rc<CompositionGeometry>
type Target = Rc<CompositionGeometry>
The resulting type after dereferencing.
Source§fn deref(&self) -> &Rc<CompositionGeometry>
fn deref(&self) -> &Rc<CompositionGeometry>
Dereferences the value.
Auto Trait Implementations§
impl !RefUnwindSafe for CompositionRoundedRectangleGeometry
impl !Send for CompositionRoundedRectangleGeometry
impl !Sync for CompositionRoundedRectangleGeometry
impl !UnwindSafe for CompositionRoundedRectangleGeometry
impl Freeze for CompositionRoundedRectangleGeometry
impl Unpin for CompositionRoundedRectangleGeometry
impl UnsafeUnpin for CompositionRoundedRectangleGeometry
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