[vala] x11: Add GenericEvent bindings
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] x11: Add GenericEvent bindings
- Date: Tue, 4 Sep 2012 21:28:48 +0000 (UTC)
commit a0c7cdfac469fec129078ccf9c8c0f484ee8b52b
Author: Daiki Ueno <ueno unixuser org>
Date: Tue Sep 4 14:27:28 2012 -0700
x11: Add GenericEvent bindings
Fixes bug 683310.
vapi/x11.vapi | 29 ++++++++++++++++++++++++++++-
1 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/vapi/x11.vapi b/vapi/x11.vapi
index 5eae3c1..0044de2 100644
--- a/vapi/x11.vapi
+++ b/vapi/x11.vapi
@@ -307,6 +307,9 @@ namespace X {
[CCode (cname = "XMoveWindow")]
public void move_window (Window window, int x, int y);
+
+ [CCode (cname = "XQueryExtension")]
+ public bool query_extension(string name, out int major_opcode, out int first_event_return, out int first_error_return);
}
[Compact]
@@ -736,7 +739,8 @@ namespace X {
SelectionNotify,
ColormapNotify,
ClientMessage,
- MappingNotify
+ MappingNotify,
+ GenericEvent
}
// union
@@ -762,6 +766,8 @@ namespace X {
public PropertyEvent xproperty;
public SelectionEvent xselection;
public ClientMessageEvent xclient;
+ public GenericEvent xgeneric;
+ public GenericEventCookie xcookie;
}
[CCode (cname = "XAnyEvent")]
@@ -1027,6 +1033,27 @@ namespace X {
public ClientMessageEventData data;
}
+ [CCode (cname = "XGenericEvent")]
+ public struct GenericEvent {
+ public int type;
+ public ulong serial;
+ public bool send_event;
+ public unowned Display display;
+ public int extension;
+ public int evtype;
+ }
+
+ [CCode (cname = "XGenericEventCookie")]
+ public struct GenericEventCookie {
+ public int type;
+ public ulong serial;
+ public bool send_event;
+ public unowned Display display;
+ public int extension;
+ public uint cookie;
+ public void *data;
+ }
+
[CCode (cname = "RECTANGLE", has_type_id = false)]
public struct Rectangle {
public short x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]