# WriteableBitmapRenderAction

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

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

```rust
struct WriteableBitmapRenderAction
```

Invokes an [`IWriteableBitmapRenderer`](/docs/0.5.0/api/ferroui-xaml-interactions-custom/trait-iwriteablebitmaprenderer/) to render into a bitmap.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_render_action.rs#L13)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`renderer_property`](#function-renderer_property)
- [`bitmap_property`](#function-bitmap_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`renderer`](#function-renderer)
- [`set_renderer`](#function-set_renderer)
- [`bitmap`](#function-bitmap)
- [`set_bitmap`](#function-set_bitmap)

<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/writeable_bitmap/writeable_bitmap_render_action.rs#L17)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_render_action.rs#L17)

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

### renderer_property

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

Identifies the `Renderer` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_render_action.rs#L28)

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

### bitmap_property

```rust
fn bitmap_property() -> &'static StyledProperty<Option<WriteableBitmapRef>>
```

Identifies the `Bitmap` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_render_action.rs#L28)

<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/writeable_bitmap/writeable_bitmap_render_action.rs#L59)

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

### new

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

Creates an action.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_render_action.rs#L64)

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

### renderer

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

Gets or sets the renderer used when executing the action. This is a property of the object
model.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_render_action.rs#L70)

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

### set_renderer

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_render_action.rs#L74)

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

### bitmap

```rust
fn bitmap(self: &Self) -> Option<WriteableBitmapRef>
```

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_render_action.rs#L79)

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

### set_bitmap

```rust
fn set_bitmap(self: &Self, value: Option<WriteableBitmapRef>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_render_action.rs#L83)

## 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`
- [`StyledElementActionImplExt`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-styledelementactionimplext/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<WriteableBitmapRenderAction>`](/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/)
- [`StyledElementActionImpl`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-styledelementactionimpl/)

## Availability

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