FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

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

    Source

    format

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

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

    Source

    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.

    Source

    can_paste

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

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • IUnknownImpl

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.