# VisualProps

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

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

```rust
trait VisualProps: ElementBuilder
```

The properties and routed events of `Visual`.

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

## Members

- [`clip_to_bounds`](#function-clip_to_bounds)
- [`clip`](#function-clip)
- [`cache_mode`](#function-cache_mode)
- [`effect`](#function-effect)
- [`opacity_mask`](#function-opacity_mask)
- [`render_transform`](#function-render_transform)
- [`render_transform_origin`](#function-render_transform_origin)
- [`is_visible`](#function-is_visible)
- [`opacity`](#function-opacity)
- [`flow_direction`](#function-flow_direction)
- [`z_index`](#function-z_index)

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

### clip_to_bounds

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

Sets `Visual::clip_to_bounds_property`.

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

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

### clip

```rust
fn clip<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_base::media::Geometry>>, M>) -> Self
```

Sets `Visual::clip_property`.

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

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

### cache_mode

```rust
fn cache_mode<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_base::media::CacheMode>>, M>) -> Self
```

Sets `Visual::cache_mode_property`.

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

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

### effect

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

Sets `Visual::effect_property`.

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

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

### opacity_mask

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

Sets `Visual::opacity_mask_property`.

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

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

### render_transform

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

Sets `Visual::render_transform_property`.

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

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

### render_transform_origin

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

Sets `Visual::render_transform_origin_property`.

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

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

### is_visible

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

Sets `Visual::is_visible_property`.

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

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

### opacity

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

Sets `Visual::opacity_property`.

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

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

### flow_direction

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

Sets `Visual::flow_direction_property`.

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

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

### z_index

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

Sets `Visual::z_index_property`.

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

## Trait implementations

- [`VisualProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-visualprops/)

## Availability

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