mirror of
https://github.com/brl/mutter.git
synced 2025-07-12 05:27:17 +00:00
CoglObject: Adds a COGL_OBJECT macro for casting
This adds a convenience COGL_OBJECT macro for casting CoglObject subclasses to (CoglObject *) pointers.
This commit is contained in:
@ -27,6 +27,8 @@
|
|||||||
|
|
||||||
typedef struct _CoglObject CoglObject;
|
typedef struct _CoglObject CoglObject;
|
||||||
|
|
||||||
|
#define COGL_OBJECT(X) ((CoglObject *)X)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CoglUserDataKey:
|
* CoglUserDataKey:
|
||||||
* @unused: ignored.
|
* @unused: ignored.
|
||||||
|
Reference in New Issue
Block a user