# PenProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-penprops/

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

```rust
trait PenProps: ElementBuilder
```

The properties and routed events of `Pen`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L6044)

## Members

- [`brush`](#function-brush)
- [`thickness`](#function-thickness)
- [`dash_style`](#function-dash_style)
- [`line_cap`](#function-line_cap)
- [`line_join`](#function-line_join)
- [`miter_limit`](#function-miter_limit)

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

### brush

```rust
fn brush<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
```

Sets `Pen::brush_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L6046)

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

### thickness

```rust
fn thickness<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `Pen::thickness_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L6051)

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

### dash_style

```rust
fn dash_style<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IDashStyle>>, M>) -> Self
```

Sets `Pen::dash_style_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L6056)

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

### line_cap

```rust
fn line_cap<M>(self: Self, value: impl IntoProp<ferroui_base::media::PenLineCap, M>) -> Self
```

Sets `Pen::line_cap_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L6061)

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

### line_join

```rust
fn line_join<M>(self: Self, value: impl IntoProp<ferroui_base::media::PenLineJoin, M>) -> Self
```

Sets `Pen::line_join_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L6066)

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

### miter_limit

```rust
fn miter_limit<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `Pen::miter_limit_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L6071)

## Trait implementations

- [`PenProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-penprops/)

## Availability

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