# IInkPlatformServices

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

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

```rust
trait IInkPlatformServices
```

Optional OS interoperability. The native Windows implementation uses the
Windows ink engine for ISF, embedded ISF/GIF and the system ink clipboard.
Core drawing, collection editing and portable persistence require no service.

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

## Members

- [`save`](#function-save)
- [`load`](#function-load)
- [`copy_to_clipboard`](#function-copy_to_clipboard)
- [`can_paste`](#function-can_paste)
- [`paste`](#function-paste)

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

### save

```rust
fn save(self: &Self, strokes: Vec<Rc<InkStroke>>, format: InkPersistenceFormat) -> InkServiceFuture<Vec<u8>>
```

Capture the supplied strokes' values before returning the future.
Stroke handles remain editable by their owners while native I/O awaits.

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

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

### load

```rust
fn load(self: &Self, data: Vec<u8>) -> InkServiceFuture<Vec<Rc<InkStroke>>>
```



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

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

### copy_to_clipboard

```rust
fn copy_to_clipboard(self: &Self, strokes: &[Rc<InkStroke>]) -> Result<(), InkError>
```



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

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

### can_paste

```rust
fn can_paste(self: &Self) -> Result<bool, InkError>
```



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

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

### paste

```rust
fn paste(self: &Self, position: Point) -> Result<Vec<Rc<InkStroke>>, InkError>
```



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

## Availability

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