[vala/staging] vapi: Update GIR-based bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vapi: Update GIR-based bindings
- Date: Mon, 25 Mar 2019 09:22:29 +0000 (UTC)
commit 2d9c89eff5bcded0ae9c9807a33d10b97b18aaaa
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Mar 25 10:20:37 2019 +0100
vapi: Update GIR-based bindings
vapi/gdl-3.0.vapi | 2 +-
vapi/graphene-gobject-1.0.vapi | 14 ++++++++++++++
vapi/gtk4.vapi | 15 ++++++++++-----
3 files changed, 25 insertions(+), 6 deletions(-)
---
diff --git a/vapi/gdl-3.0.vapi b/vapi/gdl-3.0.vapi
index 4992bdb31..f3676755a 100644
--- a/vapi/gdl-3.0.vapi
+++ b/vapi/gdl-3.0.vapi
@@ -260,7 +260,7 @@ namespace Gdl {
[HasEmitter]
public virtual signal void detach (bool recursive);
[HasEmitter]
- public virtual signal void dock (Gdl.DockObject requestor, Gdl.DockPlacement position,
GLib.Value other_data);
+ public virtual signal void dock (Gdl.DockObject requestor, Gdl.DockPlacement position,
GLib.Value? other_data);
}
[CCode (cheader_filename = "gdl/gdl.h", type_id = "gdl_dock_paned_get_type ()")]
public class DockPaned : Gdl.DockItem, Atk.Implementor, Gtk.Buildable {
diff --git a/vapi/graphene-gobject-1.0.vapi b/vapi/graphene-gobject-1.0.vapi
index e8c39aad0..f3c1a9d38 100644
--- a/vapi/graphene-gobject-1.0.vapi
+++ b/vapi/graphene-gobject-1.0.vapi
@@ -69,16 +69,26 @@ namespace Graphene {
public struct Matrix {
[Version (since = "1.0")]
public float determinant ();
+ [Version (since = "1.10")]
+ public bool equal (Graphene.Matrix b);
+ [Version (since = "1.10")]
+ public bool equal_fast (Graphene.Matrix b);
[Version (since = "1.0")]
public Graphene.Vec4 get_row (uint index_);
[Version (since = "1.0")]
public float get_value (uint row, uint col);
[Version (since = "1.0")]
public float get_x_scale ();
+ [Version (since = "1.10")]
+ public float get_x_translation ();
[Version (since = "1.0")]
public float get_y_scale ();
+ [Version (since = "1.10")]
+ public float get_y_translation ();
[Version (since = "1.0")]
public float get_z_scale ();
+ [Version (since = "1.10")]
+ public float get_z_translation ();
[Version (since = "1.0")]
public unowned Graphene.Matrix? init_from_2d (double xx, double yx, double xy, double yy,
double x_0, double y_0);
[Version (since = "1.0")]
@@ -119,6 +129,8 @@ namespace Graphene {
public bool is_singular ();
[Version (since = "1.0")]
public Graphene.Matrix multiply (Graphene.Matrix b);
+ [Version (since = "1.10")]
+ public bool near (Graphene.Matrix b, float epsilon);
[Version (since = "1.0")]
public Graphene.Matrix normalize ();
[Version (since = "1.0")]
@@ -330,6 +342,8 @@ namespace Graphene {
public Graphene.Rect round ();
[Version (deprecated = true, deprecated_since = "1.4", since = "1.0")]
public unowned Graphene.Rect? round_to_pixel ();
+ [Version (since = "1.10")]
+ public Graphene.Rect scale (float s_h, float s_v);
public Graphene.Rect union (Graphene.Rect b);
[Version (since = "1.4")]
public static unowned Graphene.Rect? zero ();
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index 129e7fd24..93a2e5a38 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -4886,7 +4886,6 @@ namespace Gdk {
public bool set_mode (Gdk.InputMode mode);
[Version (deprecated = true, deprecated_since = "3.20.")]
public void ungrab (uint32 time_);
- public void warp (int x, int y);
public Gdk.Device? associated_device { get; }
public Gdk.AxisFlags axes { get; }
public Gdk.Display display { get; construct; }
@@ -6164,13 +6163,14 @@ namespace Gsk {
protected Renderer ();
[CCode (cname = "gsk_renderer_new_for_surface")]
public static Gsk.Renderer? for_surface (Gdk.Surface surface);
- public unowned Gdk.Display get_display ();
public unowned Gdk.Surface? get_surface ();
+ public bool is_realized ();
public bool realize (Gdk.Surface surface) throws GLib.Error;
public void render (Gsk.RenderNode root, Cairo.Region? region);
public Gdk.Texture render_texture (Gsk.RenderNode root, Graphene.Rect? viewport);
public void unrealize ();
- public Gdk.Display display { get; construct; }
+ [NoAccessorMethod]
+ public Gdk.Display display { owned get; construct; }
public Gdk.Surface surface { get; }
}
[CCode (cheader_filename = "gsk/gsk.h", cname = "GskRenderNode")]
@@ -7793,6 +7793,8 @@ namespace Gtk {
[CCode (has_construct_function = false, type = "GtkEventController*")]
public EventControllerKey ();
public bool forward (Gtk.Widget widget);
+ public unowned Gtk.Widget get_focus_origin ();
+ public unowned Gtk.Widget get_focus_target ();
public uint get_group ();
public unowned Gtk.IMContext get_im_context ();
public void set_im_context (Gtk.IMContext im_context);
@@ -7813,6 +7815,8 @@ namespace Gtk {
public class EventControllerMotion : Gtk.EventController {
[CCode (has_construct_function = false, type = "GtkEventController*")]
public EventControllerMotion ();
+ public unowned Gtk.Widget get_pointer_origin ();
+ public unowned Gtk.Widget get_pointer_target ();
public signal void enter (double x, double y);
public signal void leave ();
public signal void motion (double x, double y);
@@ -11830,7 +11834,6 @@ namespace Gtk {
public void remove_mnemonic_label (Gtk.Widget label);
public void remove_tick_callback (uint id);
public void reset_style ();
- public bool send_focus_change ([CCode (type = "GdkEvent*")] Gdk.Event event);
public void set_accel_path (string? accel_path, Gtk.AccelGroup? accel_group);
[CCode (cname = "gtk_widget_class_set_accessible_role")]
public class void set_accessible_role (Atk.Role role);
@@ -12176,7 +12179,7 @@ namespace Gtk {
public virtual signal bool enable_debugging (bool toggle);
public virtual signal void keys_changed ();
[HasEmitter]
- public virtual signal void set_focus (Gtk.Widget? focus);
+ public signal void set_focus (Gtk.Widget? focus);
}
[CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_window_accessible_get_type ()")]
public class WindowAccessible : Gtk.ContainerAccessible, Atk.Component, Atk.Window {
@@ -12473,9 +12476,11 @@ namespace Gtk {
}
[CCode (cheader_filename = "gtk/gtk.h", type_cname = "GtkRootInterface", type_id = "gtk_root_get_type
()")]
public interface Root : Gtk.Widget {
+ public unowned Gtk.Widget? get_focus ();
public static unowned Gtk.Widget get_for_surface (Gdk.Surface surface);
[NoWrapper]
public abstract void get_surface_transform (int x, int y);
+ public void set_focus (Gtk.Widget? focus);
}
[CCode (cheader_filename = "gtk/gtk.h", type_cname = "GtkScrollableInterface", type_id =
"gtk_scrollable_get_type ()")]
public interface Scrollable : GLib.Object {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]