From 1b2dd815b4a81048f445890b91d12237a8a06a8b Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 2 Sep 2013 16:02:42 +0100 Subject: 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 Reviewed-by: Neil Roberts --- cogl/cogl-bitmap.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cogl/cogl-bitmap.h') 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 #include +#ifdef COGL_HAS_GTYPE_SUPPORT +#include +#endif + #ifdef COGL_HAS_ANDROID_SUPPORT #include #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 -- cgit v1.2.1