HandleDictionary

Undocumented in source.

Members

Static functions

DeregisterHandle
void DeregisterHandle(void* handle, SKObject instance)

<summary> Removes the registered instance from the dictionary. </summary>

GetInstance
bool GetInstance(void* handle, TSkiaObject instance)

<summary> Retrieve the living instance if there is one, or null if not. </summary> <returns>The instance if it is alive, or null if there is none.</returns>

GetOrAddObject
TSkiaObject GetOrAddObject(void* handle, bool owns, bool unrefExisting, Func!(void*, bool, TSkiaObject) objectFactory)

<summary> Retrieve or create an instance for the native handle. </summary> <returns>The instance, or null if the handle was null.</returns>

RegisterHandle
void RegisterHandle(void* handle, SKObject instance)

<summary> Registers the specified instance with the dictionary. </summary>

Meta