summaryrefslogtreecommitdiff
path: root/cogl/cogl-object.h
diff options
context:
space:
mode:
Diffstat (limited to 'cogl/cogl-object.h')
-rw-r--r--cogl/cogl-object.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/cogl/cogl-object.h b/cogl/cogl-object.h
index a557f800..19849fe0 100644
--- a/cogl/cogl-object.h
+++ b/cogl/cogl-object.h
@@ -27,6 +27,10 @@
#include <cogl/cogl-types.h>
+#ifdef COGL_HAS_GTYPE_SUPPORT
+#include <glib-object.h>
+#endif
+
COGL_BEGIN_DECLS
typedef struct _CoglObject CoglObject;
@@ -34,6 +38,24 @@ typedef struct _CoglObject CoglObject;
#define COGL_OBJECT(X) ((CoglObject *)X)
/**
+ * CoglObject:
+ *
+ * Ref Func: cogl_object_ref
+ * Unref Func: cogl_object_unref
+ * Set Value Func: cogl_object_value_set_object
+ * Get Value Func: cogl_object_value_get_object
+ */
+
+#ifdef COGL_HAS_GTYPE_SUPPORT
+/**
+ * cogl_object_get_gtype:
+ *
+ * Returns: a #GType that can be used with the GLib type system.
+ */
+GType cogl_object_get_gtype (void);
+#endif
+
+/**
* cogl_object_ref: (skip)
* @object: a #CoglObject
*