Method
CoglObjectset_user_data
Declaration [src]
void
cogl_object_set_user_data (
CoglObject* object,
CoglUserDataKey* key,
void* user_data,
CoglUserDataDestroyCallback destroy
)
Description [src]
Associates some private user_data with a given CoglObject. To
later remove the association call cogl_object_set_user_data() with
the same key but NULL for the user_data.
This method is not directly available to language bindings.
Parameters
key-
Type:
CoglUserDataKeyThe address of a
CoglUserDataKeywhich provides a unique value with which to index the private data.The data is owned by the caller of the method. user_data-
Type:
void*The data to associate with the given object, or
NULLto remove a previous association.The argument can be NULL.The data is owned by the caller of the method. destroy-
Type:
CoglUserDataDestroyCallbackA
CoglUserDataDestroyCallbackto call if the object is destroyed or if the association is removed by later settingNULLdata for the same key.