# CombinedGeometry

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/struct-combinedgeometry/

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

```rust
struct CombinedGeometry
```

Represents a 2-D geometric shape defined by the combination of two
geometry objects.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L40)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`geometry1_property`](#function-geometry1_property)
- [`geometry2_property`](#function-geometry2_property)
- [`geometry_combine_mode_property`](#function-geometry_combine_mode_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_geometries`](#function-with_geometries)
- [`with_mode`](#function-with_mode)
- [`with_mode_and_transform`](#function-with_mode_and_transform)
- [`geometry1`](#function-geometry1)
- [`set_geometry1`](#function-set_geometry1)
- [`geometry2`](#function-geometry2)
- [`set_geometry2`](#function-set_geometry2)
- [`geometry_combine_mode`](#function-geometry_combine_mode)
- [`set_geometry_combine_mode`](#function-set_geometry_combine_mode)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L46)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<CombinedGeometry>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L46)

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

### geometry1_property

```rust
fn geometry1_property() -> &'static StyledProperty<Option<Ref<Geometry>>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L105)

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

### geometry2_property

```rust
fn geometry2_property() -> &'static StyledProperty<Option<Ref<Geometry>>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L105)

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

### geometry_combine_mode_property

```rust
fn geometry_combine_mode_property() -> &'static StyledProperty<GeometryCombineMode>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L105)

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

### construct

```rust
fn construct() -> Self
```

Creates the class data.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L129)

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

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L137)

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

### with_geometries

```rust
fn with_geometries(geometry1: Ref<Geometry>, geometry2: Ref<Geometry>) -> Ref<Self>
```

Creates the union of the two geometries.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L142)

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

### with_mode

```rust
fn with_mode(combine_mode: GeometryCombineMode, geometry1: Option<Ref<Geometry>>, geometry2: Option<Ref<Geometry>>) -> Ref<Self>
```

Creates a combination of the two geometries with the given mode.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L150)

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

### with_mode_and_transform

```rust
fn with_mode_and_transform(combine_mode: GeometryCombineMode, geometry1: Option<Ref<Geometry>>, geometry2: Option<Ref<Geometry>>, transform: impl Into<Nullable<Transform>>) -> Ref<Self>
```

Creates a combination of the two geometries with the given mode and
transform.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L164)

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

### geometry1

```rust
fn geometry1(self: &Self) -> Option<Ref<Geometry>>
```

The first geometry that should be combined.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L179)

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

### set_geometry1

```rust
fn set_geometry1(self: &Self, value: impl Into<Nullable<Geometry>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L183)

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

### geometry2

```rust
fn geometry2(self: &Self) -> Option<Ref<Geometry>>
```

The second geometry that should be combined.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L188)

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

### set_geometry2

```rust
fn set_geometry2(self: &Self, value: impl Into<Nullable<Geometry>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L192)

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

### geometry_combine_mode

```rust
fn geometry_combine_mode(self: &Self) -> GeometryCombineMode
```

The method by which the two geometries (specified by the
`geometry1` and `geometry2`
properties) are combined. The default value is
`GeometryCombineMode::Union`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L200)

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

### set_geometry_combine_mode

```rust
fn set_geometry_combine_mode(self: &Self, value: GeometryCombineMode)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/combined_geometry.rs#L204)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`GeometryImplExt`](/docs/0.5.0/api/ferroui-base/media/trait-geometryimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<CombinedGeometry>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`GeometryImpl`](/docs/0.5.0/api/ferroui-base/media/trait-geometryimpl/)

## Availability

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