[vala] gtk+-4.0: Update to 3.93.0+2cf55c16
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gtk+-4.0: Update to 3.93.0+2cf55c16
- Date: Tue, 1 May 2018 10:52:57 +0000 (UTC)
commit 17e879d6c824095d63f9f51dd2eb86d5aedc9261
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue May 1 12:40:53 2018 +0200
gtk+-4.0: Update to 3.93.0+2cf55c16
vapi/gtk+-4.0.vapi | 80 +++++++++++++++++++-----------------
vapi/metadata/Gdk-4.0.metadata | 2 +
vapi/metadata/Gsk-4.0-custom.vala | 3 +
vapi/metadata/Gsk-4.0.metadata | 3 +
vapi/metadata/Gtk-4.0.metadata | 2 +
5 files changed, 52 insertions(+), 38 deletions(-)
---
diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi
index 3f10a96..91b7713 100644
--- a/vapi/gtk+-4.0.vapi
+++ b/vapi/gtk+-4.0.vapi
@@ -4712,6 +4712,12 @@ namespace Gdk {
[Compact]
public class Atom : string {
}
+ [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_cairo_context_get_type ()")]
+ public abstract class CairoContext : Gdk.DrawContext {
+ [CCode (has_construct_function = false)]
+ protected CairoContext ();
+ public Cairo.Context? cairo_create ();
+ }
[CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_clipboard_get_type ()")]
public class Clipboard : GLib.Object {
[CCode (has_construct_function = false)]
@@ -4993,7 +4999,8 @@ namespace Gdk {
public void set_hotspot (int hot_x, int hot_y);
[NoAccessorMethod]
public Gdk.ContentProvider content { owned get; construct; }
- public Gdk.Display display { get; construct; }
+ public Gdk.Device device { get; construct; }
+ public Gdk.Display display { get; }
public Gdk.ContentFormats formats { get; }
public signal void action_changed (Gdk.DragAction action);
public signal void cancel (Gdk.DragCancelReason reason);
@@ -5004,23 +5011,15 @@ namespace Gdk {
public abstract class DrawContext : GLib.Object {
[CCode (has_construct_function = false)]
protected DrawContext ();
+ public void begin_frame (Cairo.Region region);
+ public void end_frame ();
public unowned Gdk.Display? get_display ();
+ public unowned Cairo.Region? get_frame_region ();
public unowned Gdk.Surface? get_surface ();
+ public bool is_in_frame ();
public Gdk.Display display { get; }
public Gdk.Surface surface { get; construct; }
}
- [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_drawing_context_get_type ()")]
- public class DrawingContext : GLib.Object {
- [CCode (has_construct_function = false)]
- protected DrawingContext ();
- public unowned Cairo.Context? get_cairo_context ();
- public Cairo.Region? get_clip ();
- public unowned Gdk.DrawContext get_paint_context ();
- public Cairo.Region clip { owned get; construct; }
- public Gdk.DrawContext paint_context { get; construct; }
- [NoAccessorMethod]
- public Gdk.Surface surface { owned get; construct; }
- }
[CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_event_get_type ()")]
public class Event : GLib.Object {
[CCode (has_construct_function = false)]
@@ -5128,7 +5127,6 @@ namespace Gdk {
protected GLContext ();
public static void clear_current ();
public static unowned Gdk.GLContext? get_current ();
- public Cairo.Region get_damage ();
public bool get_debug_enabled ();
public unowned Gdk.Display? get_display ();
public bool get_forward_compatible ();
@@ -5238,7 +5236,6 @@ namespace Gdk {
[CCode (has_construct_function = false)]
protected Surface ();
public void beep ();
- public unowned Gdk.DrawingContext begin_draw_frame (Gdk.DrawContext? context, Cairo.Region
region);
public void begin_move_drag (int button, int root_x, int root_y, uint32 timestamp);
public void begin_move_drag_for_device (Gdk.Device device, int button, int root_x, int
root_y, uint32 timestamp);
public void begin_resize_drag (Gdk.SurfaceEdge edge, int button, int root_x, int root_y,
uint32 timestamp);
@@ -5248,13 +5245,13 @@ namespace Gdk {
public static void constrain_size (Gdk.Geometry geometry, Gdk.SurfaceHints flags, int width,
int height, out int new_width, out int new_height);
public void coords_from_parent (double parent_x, double parent_y, out double x, out double y);
public void coords_to_parent (double x, double y, out double parent_x, out double parent_y);
+ public Gdk.CairoContext create_cairo_context ();
public Gdk.GLContext create_gl_context () throws GLib.Error;
public Cairo.Surface create_similar_surface (Cairo.Content content, int width, int height);
public Gdk.VulkanContext create_vulkan_context () throws GLib.Error;
public void deiconify ();
[DestroysInstance]
public void destroy ();
- public void end_draw_frame (Gdk.DrawingContext context);
public void focus (uint32 timestamp);
public void freeze_updates ();
public void fullscreen ();
@@ -6124,6 +6121,13 @@ namespace Gsk {
public Gsk.RenderNode get_start_child ();
}
[CCode (cheader_filename = "gsk/gsk.h", cname = "GskRenderNode")]
+ public class DebugNode : Gsk.RenderNode {
+ [CCode (has_construct_function = false)]
+ public DebugNode (Gsk.RenderNode child, owned string message);
+ public unowned Gsk.RenderNode get_child ();
+ public unowned string get_message ();
+ }
+ [CCode (cheader_filename = "gsk/gsk.h", cname = "GskRenderNode")]
public class InsetShadowNode : Gsk.RenderNode {
[CCode (has_construct_function = false)]
public InsetShadowNode (Gsk.RoundedRect outline, Gdk.RGBA color, float dx, float dy, float
spread, float blur_radius);
@@ -6176,11 +6180,9 @@ namespace Gsk {
public static Gsk.RenderNode? deserialize (GLib.Bytes bytes) throws GLib.Error;
public void draw (Cairo.Context cr);
public Graphene.Rect get_bounds ();
- public unowned string? get_name ();
public Gsk.RenderNodeType get_node_type ();
public unowned Gsk.RenderNode @ref ();
public GLib.Bytes serialize ();
- public void set_name (string? name);
public void unref ();
public bool write_to_file (string filename) throws GLib.Error;
}
@@ -6330,7 +6332,8 @@ namespace Gsk {
CROSS_FADE_NODE,
TEXT_NODE,
BLUR_NODE,
- OFFSET_NODE
+ OFFSET_NODE,
+ DEBUG_NODE
}
[CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_SCALING_FILTER_", type_id =
"gsk_scaling_filter_get_type ()")]
[Version (since = "3.90")]
@@ -7648,6 +7651,8 @@ namespace Gtk {
public int cursor_position { get; }
[NoAccessorMethod]
public bool editable { get; set; }
+ [NoAccessorMethod]
+ public bool enable_emoji_completion { get; set; }
public bool has_frame { get; set; }
[NoAccessorMethod]
public string im_module { owned get; set; }
@@ -10270,33 +10275,32 @@ namespace Gtk {
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_snapshot_get_type ()")]
public class Snapshot : Gdk.Snapshot {
[CCode (has_construct_function = false)]
- public Snapshot (bool record_names, string name, ...);
- public Cairo.Context append_cairo (Graphene.Rect bounds, string name, ...);
- public void append_color (Gdk.RGBA color, Graphene.Rect bounds, string name, ...);
- public void append_layout (Pango.Layout layout, Gdk.RGBA color, string name, ...);
- public void append_linear_gradient (Graphene.Rect bounds, Graphene.Point start_point,
Graphene.Point end_point, Gsk.ColorStop stops, size_t n_stops, string name, ...);
+ public Snapshot ();
+ public Cairo.Context append_cairo (Graphene.Rect bounds);
+ public void append_color (Gdk.RGBA color, Graphene.Rect bounds);
+ public void append_layout (Pango.Layout layout, Gdk.RGBA color);
+ public void append_linear_gradient (Graphene.Rect bounds, Graphene.Point start_point,
Graphene.Point end_point, [CCode (array_length_cname = "n_stops", array_length_pos = 4.1, array_length_type =
"gsize")] Gsk.ColorStop[] stops);
public void append_node (Gsk.RenderNode node);
- public void append_repeating_linear_gradient (Graphene.Rect bounds, Graphene.Point
start_point, Graphene.Point end_point, Gsk.ColorStop stops, size_t n_stops, string name, ...);
- public void append_texture (Gdk.Texture texture, Graphene.Rect bounds, string name, ...);
+ public void append_repeating_linear_gradient (Graphene.Rect bounds, Graphene.Point
start_point, Graphene.Point end_point, [CCode (array_length_cname = "n_stops", array_length_pos = 4.1,
array_length_type = "gsize")] Gsk.ColorStop[] stops);
+ public void append_texture (Gdk.Texture texture, Graphene.Rect bounds);
[DestroysInstance]
public Gsk.RenderNode free_to_node ();
[DestroysInstance]
public Gdk.Paintable free_to_paintable (Graphene.Size? size);
public void get_offset (out int x, out int y);
- public bool get_record_names ();
public void offset (int x, int y);
public void pop ();
- public void push (bool keep_coordinates, string name, ...);
- public void push_blend (Gsk.BlendMode blend_mode, string name, ...);
- public void push_blur (double radius, string name, ...);
- public void push_clip (Graphene.Rect bounds, string name, ...);
- public void push_color_matrix (Graphene.Matrix color_matrix, Graphene.Vec4 color_offset,
string name, ...);
- public void push_cross_fade (double progress, string name, ...);
- public void push_opacity (double opacity, string name, ...);
- public void push_repeat (Graphene.Rect bounds, Graphene.Rect child_bounds, string name, ...);
- public void push_rounded_clip (Gsk.RoundedRect bounds, string name, ...);
- public void push_shadow (Gsk.Shadow shadow, size_t n_shadows, string name, ...);
- public void push_transform (Graphene.Matrix transform, string name, ...);
+ public void push_blend (Gsk.BlendMode blend_mode);
+ public void push_blur (double radius);
+ public void push_clip (Graphene.Rect bounds);
+ public void push_color_matrix (Graphene.Matrix color_matrix, Graphene.Vec4 color_offset);
+ public void push_cross_fade (double progress);
+ public void push_debug (string message, ...);
+ public void push_opacity (double opacity);
+ public void push_repeat (Graphene.Rect bounds, Graphene.Rect child_bounds);
+ public void push_rounded_clip (Gsk.RoundedRect bounds);
+ public void push_shadow ([CCode (array_length_cname = "n_shadows", array_length_pos = 1.1,
array_length_type = "gsize", type = "const GskShadow*")] Gsk.Shadow[] shadow);
+ public void push_transform (Graphene.Matrix transform);
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);
diff --git a/vapi/metadata/Gdk-4.0.metadata b/vapi/metadata/Gdk-4.0.metadata
index 9e8d0ce..2e11359 100644
--- a/vapi/metadata/Gdk-4.0.metadata
+++ b/vapi/metadata/Gdk-4.0.metadata
@@ -42,6 +42,8 @@ Device
Rectangle.union return_void
Surface.get_frame_extents return_void
+DrawingContext skip
+
EventAny skip
EventButton skip
EventConfigure skip
diff --git a/vapi/metadata/Gsk-4.0-custom.vala b/vapi/metadata/Gsk-4.0-custom.vala
index b25e557..69fc523 100644
--- a/vapi/metadata/Gsk-4.0-custom.vala
+++ b/vapi/metadata/Gsk-4.0-custom.vala
@@ -31,6 +31,9 @@ namespace Gsk {
public class CrossFadeNode : Gsk.RenderNode {
}
[CCode (cname = "GskRenderNode")]
+ public class DebugNode : Gsk.RenderNode {
+ }
+ [CCode (cname = "GskRenderNode")]
public class InsetShadowNode : Gsk.RenderNode {
}
[CCode (cname = "GskRenderNode")]
diff --git a/vapi/metadata/Gsk-4.0.metadata b/vapi/metadata/Gsk-4.0.metadata
index 99b4359..dc1e109 100644
--- a/vapi/metadata/Gsk-4.0.metadata
+++ b/vapi/metadata/Gsk-4.0.metadata
@@ -29,6 +29,9 @@ container_node_new* parent="Gsk.ContainerNode" symbol_type="constructor" name="c
cross_fade_node_* parent="Gsk.CrossFadeNode" symbol_type="method" instance_idx=0 name="cross_fade_node_(.+)"
cross_fade_node_new* parent="Gsk.CrossFadeNode" symbol_type="constructor" name="cross_fade_node_(.+)"
+debug_node_* parent="Gsk.DebugNode" symbol_type="method" instance_idx=0 name="debug_node_(.+)"
+debug_node_new* parent="Gsk.DebugNode" symbol_type="constructor" name="debug_node_(.+)"
+
inset_shadow_node_* parent="Gsk.InsetShadowNode" symbol_type="method" instance_idx=0
name="inset_shadow_node_(.+)"
inset_shadow_node_new* parent="Gsk.InsetShadowNode" symbol_type="constructor" name="inset_shadow_node_(.+)"
diff --git a/vapi/metadata/Gtk-4.0.metadata b/vapi/metadata/Gtk-4.0.metadata
index 81f60f0..8049bb6 100644
--- a/vapi/metadata/Gtk-4.0.metadata
+++ b/vapi/metadata/Gtk-4.0.metadata
@@ -353,6 +353,8 @@ Notebook
.create_window skip=false
PrintOperation
.create_custom_widget skip=false
+Snapshot
+ .push_shadow.shadow array array_length_idx=1
// Not completely sure
Button
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]