Method

CoglObjectget_user_data

Declaration [src]

void*
cogl_object_get_user_data (
  CoglObject* object,
  CoglUserDataKey* key
)

Description [src]

Finds the user data previously associated with object using the given key. If no user data has been associated with object for the given key this function returns NULL.

Available since:1.4

Parameters

key CoglUserDataKey
 

The address of a CoglUserDataKey which provides a unique value with which to index the private data.

 The data is owned by the caller of the function.

Return value

Returns: void*
 

The user data previously associated with object using the given key; or NULL if no associated data is found.

 The data is owned by the instance.
 The return value can be NULL.