Expand description
Host-defined tools and availability of built-in tools.
Structs§
- Drawing
Tool Registry - Per-manager catalogue. Register stable host-owned string ids before loading drawings. Unknown custom ids stay in storage but are not rendered or hit until registered. Clone the catalogue into a host picker to share implementations and availability.
- Registered
Drawing Tool - A registered tool’s host-facing name, anchor count and implementation.
- Tool
Availability - Whether a built-in tool appears in a picker and can create new drawings. Existing drawings remain visible and editable, so hiding a tool never makes a saved annotation disappear.
Traits§
- Drawing
Renderer - Rendering, picking and settings for a host-defined drawing tool. Anchors are projected
by the manager into
drawing.points; tool-specific data lives indrawing.custom_settings. Callbacks must tolerate incomplete drawings while the pointer previews their construction.