pub struct CompositionRectangleGeometry(/* private fields */);Expand description
A rectangle (WinUI Microsoft.UI.Composition.CompositionRectangleGeometry):
(offset, size), both animatable (Offset, Size).
Implementations§
Source§impl CompositionRectangleGeometry
impl CompositionRectangleGeometry
Sourcepub fn from_geometry(
geometry: &Rc<CompositionGeometry>,
) -> Option<CompositionRectangleGeometry>
pub fn from_geometry( geometry: &Rc<CompositionGeometry>, ) -> Option<CompositionRectangleGeometry>
The handle of geometry as a rectangle geometry, if it is one.
Sourcepub fn geometry(&self) -> &Rc<CompositionGeometry>
pub fn geometry(&self) -> &Rc<CompositionGeometry>
The geometry as a CompositionGeometry.
Trait Implementations§
Source§impl Clone for CompositionRectangleGeometry
impl Clone for CompositionRectangleGeometry
Source§impl Deref for CompositionRectangleGeometry
impl Deref for CompositionRectangleGeometry
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 CompositionRectangleGeometry
impl !Send for CompositionRectangleGeometry
impl !Sync for CompositionRectangleGeometry
impl !UnwindSafe for CompositionRectangleGeometry
impl Freeze for CompositionRectangleGeometry
impl Unpin for CompositionRectangleGeometry
impl UnsafeUnpin for CompositionRectangleGeometry
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