# CanvasProps

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

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

```rust
trait CanvasProps: ElementBuilder
```

The properties and routed events of `Canvas`.

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

## Members

- [`left`](#function-left)
- [`top`](#function-top)
- [`right`](#function-right)
- [`bottom`](#function-bottom)

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

### left

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

Sets `Canvas::left_property`.

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

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

### top

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

Sets `Canvas::top_property`.

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

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

### right

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

Sets `Canvas::right_property`.

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

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

### bottom

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

Sets `Canvas::bottom_property`.

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

## Trait implementations

- [`CanvasProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-canvasprops/)

## Availability

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