# CompositionContainerShape

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/composition/struct-compositioncontainershape/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct CompositionContainerShape
```

A shape that groups shapes under its transform (WinUI
`Microsoft.UI.Composition.CompositionContainerShape`): its shapes are
drawn in order, in its space.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_shape.rs#L577)

## Members

- [`from_shape`](#function-from_shape)
- [`shape`](#function-shape)
- [`shapes`](#function-shapes)

<a id="function-from_shape"></a>

### from_shape

```rust
fn from_shape(shape: &Rc<CompositionShape>) -> Option<CompositionContainerShape>
```

The handle of `shape` as a container shape, if it is one.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_shape.rs#L599)

<a id="function-shape"></a>

### shape

```rust
fn shape(self: &Self) -> &Rc<CompositionShape>
```

The shape as a `CompositionShape`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_shape.rs#L604)

<a id="function-shapes"></a>

### shapes

```rust
fn shapes(self: &Self) -> &Rc<CompositionShapeCollection>
```

The shapes of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_shape.rs#L609)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Deref`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
