# StaticRenderTargetBitmapBehavior

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactions-custom/struct-staticrendertargetbitmapbehavior/

**struct** · [`ferroui-xaml-interactions-custom`](/docs/0.5.0/api/ferroui-xaml-interactions-custom/) · v0.5.0

```rust
struct StaticRenderTargetBitmapBehavior
```

Behavior that draws once into a `RenderTargetBitmap` and assigns it to the associated
`Image`. Rendering can be triggered by calling `IRenderTargetBitmapRenderHost::render`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L18)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`pixel_width_property`](#function-pixel_width_property)
- [`pixel_height_property`](#function-pixel_height_property)
- [`dpi_property`](#function-dpi_property)
- [`renderer_property`](#function-renderer_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`pixel_width`](#function-pixel_width)
- [`set_pixel_width`](#function-set_pixel_width)
- [`pixel_height`](#function-pixel_height)
- [`set_pixel_height`](#function-set_pixel_height)
- [`dpi`](#function-dpi)
- [`set_dpi`](#function-set_dpi)
- [`renderer`](#function-renderer)
- [`set_renderer`](#function-set_renderer)
- [`render`](#function-render)
- [`as_render_target_bitmap_render_host`](#function-as_render_target_bitmap_render_host)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L23)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<StaticRenderTargetBitmapBehavior>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L23)

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

### pixel_width_property

```rust
fn pixel_width_property() -> &'static StyledProperty<i32>
```

Identifies the `PixelWidth` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L32)

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

### pixel_height_property

```rust
fn pixel_height_property() -> &'static StyledProperty<i32>
```

Identifies the `PixelHeight` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L32)

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

### dpi_property

```rust
fn dpi_property() -> &'static StyledProperty<Vector>
```

Identifies the `Dpi` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L32)

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

### renderer_property

```rust
fn renderer_property() -> &'static StyledProperty<Option<Rc<dyn IRenderTargetBitmapSimpleRenderer>>>
```

Identifies the `Renderer` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L32)

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

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L85)

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

### new

```rust
fn new() -> Ref<Self>
```

Creates a behavior.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L90)

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

### pixel_width

```rust
fn pixel_width(self: &Self) -> i32
```

Gets or sets the pixel width of the bitmap. This is a property of the object model.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L95)

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

### set_pixel_width

```rust
fn set_pixel_width(self: &Self, value: i32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L99)

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

### pixel_height

```rust
fn pixel_height(self: &Self) -> i32
```

Gets or sets the pixel height of the bitmap. This is a property of the object model.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L104)

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

### set_pixel_height

```rust
fn set_pixel_height(self: &Self, value: i32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L108)

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

### dpi

```rust
fn dpi(self: &Self) -> Vector
```

Gets or sets the DPI vector of the bitmap. This is a property of the object model.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L113)

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

### set_dpi

```rust
fn set_dpi(self: &Self, value: Vector)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L117)

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

### renderer

```rust
fn renderer(self: &Self) -> Option<Rc<dyn IRenderTargetBitmapSimpleRenderer>>
```

Gets or sets the renderer used to draw the bitmap. This is a property of the object model.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L122)

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

### set_renderer

```rust
fn set_renderer(self: &Self, value: Option<Rc<dyn IRenderTargetBitmapSimpleRenderer>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L126)

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

### render

```rust
fn render(self: &Self)
```

Requests that the behavior renders its content to the bitmap
(`IRenderTargetBitmapRenderHost::render`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L132)

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

### as_render_target_bitmap_render_host

```rust
fn as_render_target_bitmap_render_host(self: &Self) -> Rc<dyn IRenderTargetBitmapRenderHost>
```

The behavior as the contract of render hosts.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/render_target/static_render_target_bitmap_behavior.rs#L151)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`StyledElementBehaviorImplExt`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-styledelementbehaviorimplext/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<StaticRenderTargetBitmapBehavior>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`StyledElementBehaviorImpl`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-styledelementbehaviorimpl/)
- [`IRenderTargetBitmapRenderHost`](/docs/0.5.0/api/ferroui-xaml-interactions-custom/trait-irendertargetbitmaprenderhost/)

## Availability

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