From ab41a9b2b1272a66bc0eb46e55829273df43ca86 Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 4 Apr 2009 12:07:32 +0000 Subject: [PATCH] gtk2: add some gdk-pixbuf 1.6 scaling functions git-svn-id: trunk@12998 - --- packages/gtk2/src/gtk+/gdk-pixbuf/gdk2pixbuf.pas | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/gtk2/src/gtk+/gdk-pixbuf/gdk2pixbuf.pas b/packages/gtk2/src/gtk+/gdk-pixbuf/gdk2pixbuf.pas index 77ca5f3b04..c17ee7bc7e 100644 --- a/packages/gtk2/src/gtk+/gdk-pixbuf/gdk2pixbuf.pas +++ b/packages/gtk2/src/gtk+/gdk-pixbuf/gdk2pixbuf.pas @@ -142,6 +142,13 @@ type GDK_INTERP_HYPER ); + TGdkPixbufRotation = ( + GDK_PIXBUF_ROTATE_NONE = 0, + GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = 90, + GDK_PIXBUF_ROTATE_UPSIDEDOWN = 180, + GDK_PIXBUF_ROTATE_CLOCKWISE = 270 + ); + function GDK_TYPE_PIXBUF : GType; function GDK_PIXBUF(anObject : pointer) : PGdkPixbuf; function GDK_IS_PIXBUF(anObject : pointer) : boolean; @@ -237,6 +244,10 @@ procedure gdk_pixbuf_composite_color(src:PGdkPixbuf; dest:PGdkPixbuf; dest_x:lon function gdk_pixbuf_scale_simple(src:PGdkPixbuf; dest_width:longint; dest_height:longint; interp_type:TGdkInterpType):PGdkPixbuf; cdecl; external gdkpixbuflib; function gdk_pixbuf_composite_color_simple(src:PGdkPixbuf; dest_width:longint; dest_height:longint; interp_type:TGdkInterpType; overall_alpha:longint; check_size:longint; color1:guint32; color2:guint32):PGdkPixbuf; cdecl; external gdkpixbuflib; +{$IFDEF HasGTK2_6} +function gdk_pixbuf_rotate_simple(src: PGdkPixbuf; angle: TGdkPixbufRotation): PGdkPixbuf; cdecl; external gdkpixbuflib; +function gdk_pixbuf_flip(src: PGdkPixbuf; horizontal: gboolean): PGdkPixbuf; cdecl; external gdkpixbuflib; +{$ENDIF} { Animation support } function gdk_pixbuf_animation_get_type:GType; cdecl; external gdkpixbuflib;