From: Rico Tzschichholz Date: Sun, 13 Nov 2016 09:06:50 +0000 (+0100) Subject: gtk+-4.0: Update to 3.89.0+2520662d X-Git-Tag: 0.35.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dba5a53f489f98d94ff7ff4413fef8c1d294254;p=thirdparty%2Fvala.git gtk+-4.0: Update to 3.89.0+2520662d --- diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi index e0a2d7b1b..ed6a43aaa 100644 --- a/vapi/gtk+-4.0.vapi +++ b/vapi/gtk+-4.0.vapi @@ -6910,7 +6910,7 @@ namespace Gsk { public void set_opacity (double opacity); public void set_opaque (bool opaque); public void set_scaling_filter (Gsk.ScalingFilter min_filter, Gsk.ScalingFilter mag_filter); - public void set_texture (int texture_id); + public void set_texture (Gsk.Texture texture); public void set_transform (Graphene.Matrix? transform); public void unref (); } @@ -6975,6 +6975,20 @@ namespace Gsk { public Graphene.Rect viewport { get; set; } public Gdk.Window window { get; construct; } } + [CCode (cheader_filename = "gsk/gsk.h", ref_function = "gsk_texture_ref", type_id = "gsk_texture_get_type ()", unref_function = "gsk_texture_unref")] + [Compact] + [Version (since = "3.90")] + public class Texture { + [CCode (has_construct_function = false)] + public Texture.for_data (Gsk.Renderer renderer, uint8 data, int width, int height, int stride); + [CCode (has_construct_function = false)] + public Texture.for_pixbuf (Gsk.Renderer renderer, Gdk.Pixbuf pixbuf); + public int get_height (); + public unowned Gsk.Renderer get_renderer (); + public int get_width (); + public unowned Gsk.Texture @ref (); + public void unref (); + } [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_BLEND_MODE_", has_type_id = false)] [Version (since = "3.90")] public enum BlendMode {