FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IInkPlatformServices

    trait · ferroui-controls-inking · v0.5.0

    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

    Members

    save

    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

    load

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

    Source

    copy_to_clipboard

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

    Source

    can_paste

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

    Source

    paste

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

    Source

    Availability

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