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.
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.
load
fn load(self: &Self, data: Vec<u8>) -> InkServiceFuture<Vec<Rc<InkStroke>>>
copy_to_clipboard
fn copy_to_clipboard(self: &Self, strokes: &[Rc<InkStroke>]) -> Result<(), InkError>
can_paste
fn can_paste(self: &Self) -> Result<bool, InkError>
paste
fn paste(self: &Self, position: Point) -> Result<Vec<Rc<InkStroke>>, InkError>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.