Skip to main content

Module templates

Module templates 

Source
Expand description

Named templates stored by the host, without accounts or a storage backend in the library.

Re-exports§

pub use crate::drawings::DrawingTemplate;

Structs§

TemplateDialog
Template management opened by a host’s study or drawing toolbar intents. The host supplies the current value, handles the returned loaded value and supplies durable storage if desired.
TemplateStore
Named, host-readable templates. Without a storage service they live in memory. With a service attached, poll every frame, including while the template UI is closed. A failed read or an unknown document version disables writes until a successful reload, preventing accidental replacement of documents that could not be understood.