From: Rico Tzschichholz Date: Wed, 16 Nov 2016 17:29:26 +0000 (+0100) Subject: gtk+-4.0: Update to 3.89.0+48e7f419 X-Git-Tag: 0.35.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1dd5668f7915a45e8f3c0650fa68f11d7c99730;p=thirdparty%2Fvala.git gtk+-4.0: Update to 3.89.0+48e7f419 --- diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi index ed6a43aaa..5e9bf34e9 100644 --- a/vapi/gtk+-4.0.vapi +++ b/vapi/gtk+-4.0.vapi @@ -6980,11 +6980,10 @@ namespace Gsk { [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); + public Texture.for_data ([CCode (array_length = false, type = "const guchar*")] uint8[] data, int width, int height, int stride); [CCode (has_construct_function = false)] - public Texture.for_pixbuf (Gsk.Renderer renderer, Gdk.Pixbuf pixbuf); + public Texture.for_pixbuf (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 (); @@ -12597,6 +12596,24 @@ namespace Gtk { public void set_mode (Gtk.SizeGroupMode mode); public Gtk.SizeGroupMode mode { get; set; } } + [CCode (cheader_filename = "gtk/gtk.h", has_type_id = false)] + [Compact] + public class Snapshot { + public void append_node (Gsk.RenderNode node); + public bool clips_rect (Graphene.Rect bounds); + public void pop (); + public void push_node (Gsk.RenderNode node); + public void render_background (Gtk.StyleContext context, double x, double y, double width, double height); + public void render_focus (Gtk.StyleContext context, double x, double y, double width, double height); + public void render_frame (Gtk.StyleContext context, double x, double y, double width, double height); + public void render_icon (Gtk.StyleContext context, Gdk.Pixbuf pixbuf, double x, double y); + [Version (since = "3.90")] + public void render_insertion_cursor (Gtk.StyleContext context, double x, double y, Pango.Layout layout, int index, Pango.Direction direction); + public void render_layout (Gtk.StyleContext context, double x, double y, Pango.Layout layout); + public void set_transform (Graphene.Matrix transform); + public void transform (Graphene.Matrix matrix); + public void translate_2d (int x, int y); + } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_spin_button_get_type ()")] public class SpinButton : Gtk.Entry, Atk.Implementor, Gtk.Buildable, Gtk.CellEditable, Gtk.Editable, Gtk.Orientable { [CCode (has_construct_function = false, type = "GtkWidget*")] @@ -14515,6 +14532,8 @@ namespace Gtk { public void show_now (); [Version (since = "3.10")] public void size_allocate_with_baseline (Gtk.Allocation allocation, int baseline); + [NoWrapper] + public virtual void snapshot (Gtk.Snapshot snapshot); public void style_get (...); public void style_get_property (string property_name, ref GLib.Value value); public void style_get_valist (string first_property_name, [CCode (type = "va_list")] va_list var_args); diff --git a/vapi/metadata/Gsk-4.0.metadata b/vapi/metadata/Gsk-4.0.metadata index 848863e0e..cca78fd56 100644 --- a/vapi/metadata/Gsk-4.0.metadata +++ b/vapi/metadata/Gsk-4.0.metadata @@ -2,3 +2,6 @@ value_* skip RenderNodeIter .free destroys_instance + +Texture + .new_for_data.data array