Gets the WASM pointer for this object Returns 0 if object has been disposed (error handled by global handler)
Check if this object has been disposed
Protected_Cleanup function to be implemented by subclasses
The WASM pointer to clean up
StaticidGenerate a unique hash ID from a string name (DJB2 hash).
The string name to hash
The generated hash ID
Traverse the scene tree of a paint and invoke a callback on the paint and each of its descendants. The callback receives the correctly typed Paint subclass (Shape, Scene, Picture, or Text). Return false from the callback to stop traversal early.
Retrieve the original name string for a given ID.
The unique identifier, e.g. from Paint.id
The corresponding name, or null if not found or unavailable
Only resolves while set is traversing, and only when the picture was marked accessible before loading (see Picture.accessible). Returns null otherwise.
Manually dispose of this object and free its WASM memory
Utility class for traversing and inspecting paint trees