Skip to main content

Module registry

Module registry 

Source
Expand description

Host-defined tools and availability of built-in tools.

Structs§

DrawingToolRegistry
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.
RegisteredDrawingTool
A registered tool’s host-facing name, anchor count and implementation.
ToolAvailability
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§

DrawingRenderer
Rendering, picking and settings for a host-defined drawing tool. Anchors are projected by the manager into drawing.points; tool-specific data lives in drawing.custom_settings. Callbacks must tolerate incomplete drawings while the pointer previews their construction.