# IInkPresenterStencil

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-inking/trait-iinkpresenterstencil/

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

```rust
trait IInkPresenterStencil
```

Shared programmatic contract of the two canvas stencil services.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L25)

## Members

- [`kind`](#function-kind)
- [`is_visible`](#function-is_visible)
- [`set_is_visible`](#function-set_is_visible)
- [`transform`](#function-transform)
- [`set_transform`](#function-set_transform)
- [`background_color`](#function-background_color)
- [`set_background_color`](#function-set_background_color)
- [`foreground_color`](#function-foreground_color)
- [`set_foreground_color`](#function-set_foreground_color)

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

### kind

```rust
fn kind(self: &Self) -> InkPresenterStencilKind
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L26)

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

### is_visible

```rust
fn is_visible(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L27)

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

### set_is_visible

```rust
fn set_is_visible(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L28)

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

### transform

```rust
fn transform(self: &Self) -> Matrix
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L29)

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

### set_transform

```rust
fn set_transform(self: &Self, value: Matrix) -> Result<(), InkError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L30)

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

### background_color

```rust
fn background_color(self: &Self) -> Color
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L31)

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

### set_background_color

```rust
fn set_background_color(self: &Self, value: Color)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L32)

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

### foreground_color

```rust
fn foreground_color(self: &Self) -> Color
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L33)

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

### set_foreground_color

```rust
fn set_foreground_color(self: &Self, value: Color)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Inking/ink_presenter_stencil.rs#L34)

## Trait implementations

- [`IInkPresenterStencil`](/docs/0.5.0/api/ferroui-controls-inking/trait-iinkpresenterstencil/)

## Availability

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