Back to Seed Clases

Cogl


Classes

Interfaces

Structs

Unions

Enums

Struct Cogl.UserDataKey

Import line: Cogl = imports.gi.Cogl;
GIR File: Cogl-1.0.gir
C documentation: CoglUserDataKey
Struct : UserDataKey
A CoglUserDataKey is used to declare a key for attaching data to a
CoglObject using cogl_object_set_user_data. The typedef only exists as a
formality to make code self documenting since only the unique address of a
CoglUserDataKey is used.
Typically you would declare a static CoglUserDataKey and set private data
on an object something like this:
|[
static CoglUserDataKey path_private_key;
static void
destroy_path_private_cb (void *data)
{
g_free (data);
}
static void
my_path_set_data (CoglPath *path, void *data)
{
cogl_object_set_user_data (COGL_OBJECT (path),
&private_key,
data,
destroy_path_private_cb);
}
]|
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new Cogl.UserDataKey ()
Create a new Cogl.UserDataKey
Create a new Cogl.UserDataKey
 
Events
None
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:09:55 GMT+0800 (HKT)