[gtkmm] Regenerate GDK .defs.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Regenerate GDK .defs.
- Date: Fri, 6 Mar 2015 09:42:41 +0000 (UTC)
commit 9b32903da965bfc3c002d5ada2c9d335a293b430
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Mar 6 10:07:51 2015 +0100
Regenerate GDK .defs.
gdk/src/gdk_enums.defs | 17 -------
gdk/src/gdk_methods.defs | 113 +++++++++++++++++++++++++++++++++++++--------
2 files changed, 93 insertions(+), 37 deletions(-)
---
diff --git a/gdk/src/gdk_enums.defs b/gdk/src/gdk_enums.defs
index fd506ac..4162ce5 100644
--- a/gdk/src/gdk_enums.defs
+++ b/gdk/src/gdk_enums.defs
@@ -1076,23 +1076,6 @@
;; Original typedef:
;; typedef enum {
-;; GDK_GL_PROFILE_DEFAULT,
-;; GDK_GL_PROFILE_LEGACY,
-;; GDK_GL_PROFILE_3_2_CORE
-;; } GdkGLProfile;
-
-(define-enum-extended GLProfile
- (in-module "Gdk")
- (c-name "GdkGLProfile")
- (values
- '("default" "GDK_GL_PROFILE_DEFAULT" "0")
- '("legacy" "GDK_GL_PROFILE_LEGACY" "1")
- '("3-2-core" "GDK_GL_PROFILE_3_2_CORE" "2")
- )
-)
-
-;; Original typedef:
-;; typedef enum {
;; GDK_GL_ERROR_NOT_AVAILABLE,
;; GDK_GL_ERROR_UNSUPPORTED_FORMAT,
;; GDK_GL_ERROR_UNSUPPORTED_PROFILE
diff --git a/gdk/src/gdk_methods.defs b/gdk/src/gdk_methods.defs
index c27bb33..8796699 100644
--- a/gdk/src/gdk_methods.defs
+++ b/gdk/src/gdk_methods.defs
@@ -592,17 +592,6 @@
)
)
-(define-enum GLProfile
- (in-module "Gdk")
- (c-name "GdkGLProfile")
- (gtype-id "GDK_TYPE_GL_PROFILE")
- (values
- '("default" "GDK_GL_PROFILE_DEFAULT")
- '("legacy" "GDK_GL_PROFILE_LEGACY")
- '("3-2-core" "GDK_GL_PROFILE_3_2_CORE")
- )
-)
-
(define-enum GLError
(in-module "Gdk")
(c-name "GdkGLError")
@@ -850,6 +839,10 @@
+;; From gdk-autocleanup.h
+
+
+
;; From gdkcairo.h
(define-function gdk_cairo_create
@@ -2074,11 +2067,6 @@
(return-type "GType")
)
-(define-function gdk_gl_profile_get_type
- (c-name "gdk_gl_profile_get_type")
- (return-type "GType")
-)
-
(define-function gdk_gl_error_get_type
(c-name "gdk_gl_error_get_type")
(return-type "GType")
@@ -2605,10 +2593,79 @@
(return-type "GdkWindow*")
)
-(define-method get_profile
+(define-method get_shared_context
(of-object "GdkGLContext")
- (c-name "gdk_gl_context_get_profile")
- (return-type "GdkGLProfile")
+ (c-name "gdk_gl_context_get_shared_context")
+ (return-type "GdkGLContext*")
+)
+
+(define-method get_version
+ (of-object "GdkGLContext")
+ (c-name "gdk_gl_context_get_version")
+ (return-type "none")
+ (parameters
+ '("int*" "major")
+ '("int*" "minor")
+ )
+)
+
+(define-method set_required_version
+ (of-object "GdkGLContext")
+ (c-name "gdk_gl_context_set_required_version")
+ (return-type "none")
+ (parameters
+ '("int" "major")
+ '("int" "minor")
+ )
+)
+
+(define-method get_required_version
+ (of-object "GdkGLContext")
+ (c-name "gdk_gl_context_get_required_version")
+ (return-type "none")
+ (parameters
+ '("int*" "major")
+ '("int*" "minor")
+ )
+)
+
+(define-method set_debug_enabled
+ (of-object "GdkGLContext")
+ (c-name "gdk_gl_context_set_debug_enabled")
+ (return-type "none")
+ (parameters
+ '("gboolean" "enabled")
+ )
+)
+
+(define-method get_debug_enabled
+ (of-object "GdkGLContext")
+ (c-name "gdk_gl_context_get_debug_enabled")
+ (return-type "gboolean")
+)
+
+(define-method set_forward_compatible
+ (of-object "GdkGLContext")
+ (c-name "gdk_gl_context_set_forward_compatible")
+ (return-type "none")
+ (parameters
+ '("gboolean" "compatible")
+ )
+)
+
+(define-method get_forward_compatible
+ (of-object "GdkGLContext")
+ (c-name "gdk_gl_context_get_forward_compatible")
+ (return-type "gboolean")
+)
+
+(define-method realize
+ (of-object "GdkGLContext")
+ (c-name "gdk_gl_context_realize")
+ (return-type "gboolean")
+ (parameters
+ '("GError**" "error")
+ )
)
(define-method make_current
@@ -2631,6 +2688,18 @@
;; From gdkglcontextprivate.h
+(define-method upload_texture
+ (of-object "GdkGLContext")
+ (c-name "gdk_gl_context_upload_texture")
+ (return-type "none")
+ (parameters
+ '("cairo_surface_t*" "image_surface")
+ '("int" "width")
+ '("int" "height")
+ '("guint" "texture_target")
+ )
+)
+
(define-method get_paint_data
(of-object "GdkGLContext")
(c-name "gdk_gl_context_get_paint_data")
@@ -3040,6 +3109,11 @@
(return-type "const-gchar*")
)
+(define-function gdk_get_display
+ (c-name "gdk_get_display")
+ (return-type "gchar*")
+)
+
(define-function gdk_pointer_grab
(c-name "gdk_pointer_grab")
(return-type "GdkGrabStatus")
@@ -5382,7 +5456,6 @@
(c-name "gdk_window_create_gl_context")
(return-type "GdkGLContext*")
(parameters
- '("GdkGLProfile" "profile")
'("GError**" "error")
)
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]