# InkClipboard

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-inking/struct-inkclipboard/

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

```rust
struct InkClipboard
```

Shares portable ink between FerroUI applications on any clipboard backend.
Use the clipboard of the owning `TopLevel`; no global clipboard is assumed.
Native Windows Ink clipboard interoperability is supplied separately by
`IInkPlatformServices`, because its representation and API are different.

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

## Members

- [`new`](#function-new)
- [`format`](#function-format)
- [`copy_selected`](#function-copy_selected)
- [`can_paste`](#function-can_paste)
- [`paste`](#function-paste)

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

### new

```rust
fn new(clipboard: Rc<dyn IClipboard>) -> Self
```



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

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

### format

```rust
fn format() -> DataFormatOf<Rc<[u8]>>
```

A platform-independent application format, mapped by each backend to
its native clipboard naming scheme.

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

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

### copy_selected

```rust
fn copy_selected(self: &Self, container: &InkStrokeContainer) -> InkServiceFuture<()>
```

Captures selected strokes immediately. The clipboard owns the transfer
after a successful write; subsequent edits cannot change its payload.

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

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

### can_paste

```rust
fn can_paste(self: &Self) -> InkServiceFuture<bool>
```



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

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

### paste

```rust
fn paste(self: &Self, container: Rc<InkStrokeContainer>, position: Point) -> InkServiceFuture<Rect>
```

Appends fresh stroke identities, preserving existing ink if fetching or
decoding fails. Selection and positioning use the container's atomic
portable-paste implementation.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `IUnknownImpl`

## Availability

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