# GeometryCombineMode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/enum-geometrycombinemode/

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

```rust
enum GeometryCombineMode
```

Specifies the different methods by which two geometries can be combined.

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

## Members

- [`Union`](#variant-union)
- [`Intersect`](#variant-intersect)
- [`Xor`](#variant-xor)
- [`Exclude`](#variant-exclude)

<a id="variant-union"></a>

### Union

```rust
Union = 0
```

The two regions are combined by taking the union of both. The
resulting geometry is geometry A + geometry B.

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

<a id="variant-intersect"></a>

### Intersect

```rust
Intersect = 1
```

The two regions are combined by taking the intersection of both. The
new area consists of the overlapping region between the two
geometries.

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

<a id="variant-xor"></a>

### Xor

```rust
Xor = 2
```

The two regions are combined by taking the area that exists in the
first region but not the second and the area that exists in the
second region but not the first. The new region consists of
(A-B) + (B-A), where A and B are geometries.

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

<a id="variant-exclude"></a>

### Exclude

```rust
Exclude = 3
```

The second region is excluded from the first. Given two geometries, A
and B, the area of geometry B is removed from the area of geometry A,
producing a region that is A-B.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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