InkClipboard
struct · ferroui-controls-inking · v0.5.0
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.
Members
new
fn new(clipboard: Rc<dyn IClipboard>) -> Self
format
fn format() -> DataFormatOf<Rc<[u8]>>
A platform-independent application format, mapped by each backend to its native clipboard naming scheme.
copy_selected
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.
can_paste
fn can_paste(self: &Self) -> InkServiceFuture<bool>
paste
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherIUnknownImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.