# ShapeProps

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

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

```rust
trait ShapeProps: ElementBuilder
```

The properties and routed events of `Shape`.

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

## Members

- [`fill`](#function-fill)
- [`stretch`](#function-stretch)
- [`stroke`](#function-stroke)
- [`stroke_dash_array`](#function-stroke_dash_array)
- [`stroke_dash_offset`](#function-stroke_dash_offset)
- [`stroke_thickness`](#function-stroke_thickness)
- [`stroke_line_cap`](#function-stroke_line_cap)
- [`stroke_join`](#function-stroke_join)
- [`stroke_miter_limit`](#function-stroke_miter_limit)

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

### fill

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

Sets `Shape::fill_property`.

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

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

### stretch

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

Sets `Shape::stretch_property`.

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

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

### stroke

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

Sets `Shape::stroke_property`.

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

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

### stroke_dash_array

```rust
fn stroke_dash_array<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::MediaCollection<f64>>, M>) -> Self
```

Sets `Shape::stroke_dash_array_property`.

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

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

### stroke_dash_offset

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

Sets `Shape::stroke_dash_offset_property`.

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

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

### stroke_thickness

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

Sets `Shape::stroke_thickness_property`.

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

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

### stroke_line_cap

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

Sets `Shape::stroke_line_cap_property`.

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

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

### stroke_join

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

Sets `Shape::stroke_join_property`.

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

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

### stroke_miter_limit

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

Sets `Shape::stroke_miter_limit_property`.

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

## Trait implementations

- [`ShapeProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-shapeprops/)

## Availability

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