pub struct CompositionContainerShape(/* private fields */);Expand description
A shape that groups shapes under its transform (WinUI
Microsoft.UI.Composition.CompositionContainerShape): its shapes are
drawn in order, in its space.
Implementations§
Source§impl CompositionContainerShape
impl CompositionContainerShape
Sourcepub fn from_shape(
shape: &Rc<CompositionShape>,
) -> Option<CompositionContainerShape>
pub fn from_shape( shape: &Rc<CompositionShape>, ) -> Option<CompositionContainerShape>
The handle of shape as a container shape, if it is one.
Sourcepub fn shape(&self) -> &Rc<CompositionShape>
pub fn shape(&self) -> &Rc<CompositionShape>
The shape as a CompositionShape.
Sourcepub fn shapes(&self) -> &Rc<CompositionShapeCollection>
pub fn shapes(&self) -> &Rc<CompositionShapeCollection>
The shapes of the container.
Trait Implementations§
Source§impl Clone for CompositionContainerShape
impl Clone for CompositionContainerShape
Source§impl Deref for CompositionContainerShape
impl Deref for CompositionContainerShape
Source§type Target = Rc<CompositionShape>
type Target = Rc<CompositionShape>
The resulting type after dereferencing.
Source§fn deref(&self) -> &Rc<CompositionShape>
fn deref(&self) -> &Rc<CompositionShape>
Dereferences the value.
Auto Trait Implementations§
impl !RefUnwindSafe for CompositionContainerShape
impl !Send for CompositionContainerShape
impl !Sync for CompositionContainerShape
impl !UnwindSafe for CompositionContainerShape
impl Freeze for CompositionContainerShape
impl Unpin for CompositionContainerShape
impl UnsafeUnpin for CompositionContainerShape
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