# CompositionStrokeLineJoin

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

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

```rust
enum CompositionStrokeLineJoin
```

How the segments of a stroke are joined (WinUI
`CompositionStrokeLineJoin`).

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

## Members

- [`Miter`](#variant-miter)
- [`Bevel`](#variant-bevel)
- [`Round`](#variant-round)
- [`MiterOrBevel`](#variant-miterorbevel)
- [`to_pen_line_join`](#function-to_pen_line_join)

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

### Miter

```rust
Miter = 0
```

A sharp corner, cut at the miter limit.

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

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

### Bevel

```rust
Bevel = 1
```

A corner cut off at the outer ends of the segments.

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

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

### Round

```rust
Round = 2
```

A rounded corner.

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

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

### MiterOrBevel

```rust
MiterOrBevel = 3
```

A sharp corner, or a bevel beyond the miter limit.

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

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

### to_pen_line_join

```rust
fn to_pen_line_join(self: Self) -> PenLineJoin
```

The line join of the platform pen.

Deviation (winui-composition.md): the miter join of the platform pens
becomes a bevel beyond the miter limit, so `Miter` (cut at the limit
in WinUI) and `MiterOrBevel` both draw that join.

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

## 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`
- `BatchValue`
- `ServerPropertyValue`

## Availability

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