RCPointer
A reference-counted pointer to a native C++ object.
Begins with a reference count of 1 upon creation. Call acquire to increment the reference count, and release to decrement it. When the reference count reaches zero, the onDispose callback is invoked to clean up the native resource.
Parameters
cpp Pointer
The native pointer address.
label
A label for the object pointed to, used for logging purposes, e.g. "Artboard".
on Dispose
A callback invoked when the reference count reaches zero to clean up the native resource.