# BorderProps

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

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

```rust
trait BorderProps: ElementBuilder
```

The properties and routed events of `Border`.

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

## Members

- [`background`](#function-background)
- [`background_sizing`](#function-background_sizing)
- [`border_brush`](#function-border_brush)
- [`border_thickness`](#function-border_thickness)
- [`corner_radius`](#function-corner_radius)
- [`box_shadow`](#function-box_shadow)

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

### background

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

Sets `Border::background_property`.

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

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

### background_sizing

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

Sets `Border::background_sizing_property`.

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

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

### border_brush

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

Sets `Border::border_brush_property`.

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

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

### border_thickness

```rust
fn border_thickness<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
```

Sets `Border::border_thickness_property`.

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

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

### corner_radius

```rust
fn corner_radius<M>(self: Self, value: impl IntoProp<ferroui_base::CornerRadius, M>) -> Self
```

Sets `Border::corner_radius_property`.

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

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

### box_shadow

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

Sets `Border::box_shadow_property`.

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

## Trait implementations

- [`BorderProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-borderprops/)

## Availability

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