summaryrefslogtreecommitdiff
path: root/cogl/cogl-bitmap.h
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2013-09-02 16:02:42 +0100
committerNeil Roberts <neil@linux.intel.com>2014-03-20 18:27:12 +0000
commit1b2dd815b4a81048f445890b91d12237a8a06a8b (patch)
tree2d8e74039cf945ed4b628863e47532dc75e1b13a /cogl/cogl-bitmap.h
parentbb10532f4b11cba169ace6d9e26543fe6f70ad8f (diff)
downloadcogl-1b2dd815b4a81048f445890b91d12237a8a06a8b.tar.gz
Registers gtypes for all public objects and structs
This adds much more comprehensive support for gobject-introspection based bindings by registering all objects as fundamental types that inherit from CoglObject, and all structs as boxed types. Co-Author: Robert Bragg <robert@linux.intel.com> Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-bitmap.h')
-rw-r--r--cogl/cogl-bitmap.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/cogl/cogl-bitmap.h b/cogl/cogl-bitmap.h
index fd4f292f..13b5cd2b 100644
--- a/cogl/cogl-bitmap.h
+++ b/cogl/cogl-bitmap.h
@@ -44,12 +44,25 @@ typedef struct _CoglBitmap CoglBitmap;
#include <cogl/cogl-context.h>
#include <cogl/cogl-pixel-buffer.h>
+#ifdef COGL_HAS_GTYPE_SUPPORT
+#include <glib-object.h>
+#endif
+
#ifdef COGL_HAS_ANDROID_SUPPORT
#include <android/asset_manager.h>
#endif
COGL_BEGIN_DECLS
+#ifdef COGL_HAS_GTYPE_SUPPORT
+/**
+ * cogl_bitmap_get_gtype:
+ *
+ * Returns: a #GType that can be used with the GLib type system.
+ */
+GType cogl_bitmap_get_gtype (void);
+#endif
+
/**
* SECTION:cogl-bitmap
* @short_description: Functions for loading images