diff options
author | John Finlay <finlay@src.gnome.org> | 2006-07-22 08:18:00 +0000 |
---|---|---|
committer | John Finlay <finlay@src.gnome.org> | 2006-07-22 08:18:00 +0000 |
commit | 5854a2c3b7832419b3cb953a9864ef72df12f11a (patch) | |
tree | 97d3402f356fe49e1500ce03a137193f9d16f259 /gtk | |
parent | ff7663b8c59fa57cf8096fce6f61e60354657b4e (diff) | |
download | pygtk-5854a2c3b7832419b3cb953a9864ef72df12f11a.tar.gz |
Add
* gtk/gdk-base.defs (gdk_pixbuf_simple_anim_add_frame)
(pixbuf_simple_anim_new, pixbuf_simple_anim_iter_get_type)
(pixbuf_simple_anim_get_type, gdk_pixbuf_flip): Add
* gtk/gdk.override: Add #define for GDK_TYPE_PIXBUF_SIMPLE_ANIM_ITER.
* gtk/gdk-base-types.defs (PixbufSimpleAnim)
(PixbufSimpleAnimIter, PixbufRotation): Add.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gdk-base-types.defs | 27 | ||||
-rw-r--r-- | gtk/gdk-base.defs | 47 | ||||
-rw-r--r-- | gtk/gdk.override | 5 |
3 files changed, 79 insertions, 0 deletions
diff --git a/gtk/gdk-base-types.defs b/gtk/gdk-base-types.defs index 2abbec01..59776fbf 100644 --- a/gtk/gdk-base-types.defs +++ b/gtk/gdk-base-types.defs @@ -141,6 +141,21 @@ (gtype-id "GDK_TYPE_PIXBUF_LOADER") ) +(define-object PixbufSimpleAnim + (in-module "Gdk") + (parent "GdkPixbufAnimation") + (c-name "GdkPixbufSimpleAnim") + (gtype-id "GDK_TYPE_PIXBUF_SIMPLE_ANIM") +) + +(define-object PixbufSimpleAnimIter + (in-module "Gdk") + (parent "GdkPixbufAnimationIter") + (c-name "GdkPixbufSimpleAnimIter") + (gtype-id "GDK_TYPE_PIXBUF_SIMPLE_ANIM_ITER") +) + + (define-object Screen (in-module "Gdk") (parent "GObject") @@ -923,6 +938,18 @@ ) ) +(define-enum PixbufRotation + (in-module "Gdk") + (c-name "GdkPixbufRotation") + (gtype-id "GDK_TYPE_PIXBUF_ROTATION") + (values + '("none" "GDK_PIXBUF_ROTATE_NONE") + '("counterclockwise" "GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE") + '("upsidedown" "GDK_PIXBUF_ROTATE_UPSIDEDOWN") + '("clockwise" "GDK_PIXBUF_ROTATE_CLOCKWISE") + ) +) + (define-enum InterpType (in-module "Gdk") (c-name "GdkInterpType") diff --git a/gtk/gdk-base.defs b/gtk/gdk-base.defs index 0b0c6adf..a8c3f648 100644 --- a/gtk/gdk-base.defs +++ b/gtk/gdk-base.defs @@ -5278,6 +5278,53 @@ (return-type "GdkPixbufFormat*") ) +;; From gdk-pixbuf-simple-anim.h + +(define-function pixbuf_simple_anim_get_type + (c-name "gdk_pixbuf_simple_anim_get_type") + (return-type "GType") +) + +(define-function pixbuf_simple_anim_iter_get_type + (c-name "gdk_pixbuf_simple_anim_iter_get_type") + (return-type "GType") +) + +(define-function pixbuf_simple_anim_new + (c-name "gdk_pixbuf_simple_anim_new") + (is-constructor-of "GdkPixbufSimpleAnim") + (return-type "GdkPixbufSimpleAnim*") + (parameters + '("gint" "width") + '("gint" "height") + '("gfloat" "rate") + ) +) + +(define-method add_frame + (of-object "GdkPixbufSimpleAnim") + (c-name "gdk_pixbuf_simple_anim_add_frame") + (return-type "none") + (parameters + '("GdkPixbuf*" "pixbuf") + ) +) + + + +;; From gdk-pixbuf-transform.h + +(define-method flip + (of-object "GdkPixbuf") + (c-name "gdk_pixbuf_flip") + (return-type "GdkPixbuf*") + (parameters + '("gboolean" "horizontal") + ) +) + +;; + (define-method intersect (of-object "GdkRectangle") (c-name "gdk_rectangle_intersect") diff --git a/gtk/gdk.override b/gtk/gdk.override index 21533fe6..79a7d0a9 100644 --- a/gtk/gdk.override +++ b/gtk/gdk.override @@ -69,6 +69,11 @@ pygdk_region_get_type (void) } #endif +#ifndef GDK_TYPE_PIXBUF_SIMPLE_ANIM_ITER +GType gtk_print_capabilites_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_PIXBUF_SIMPLE_ANIM_ITER (gdk_pixbuf_simple_anim_iter_get_type()) +#endif + %% include gdkcairo.override |