[vala] Add xtst bindings



commit 3e0ae3c6fe53090c6a978383d436a8f1145bf739
Author: Alexander Kurtz <kurtz alex googlemail com>
Date:   Sun Jan 22 14:01:03 2012 -0800

    Add xtst bindings
    
    Fixes bug 647465.

 vapi/Makefile.am |    2 +
 vapi/xtst.deps   |    1 +
 vapi/xtst.vapi   |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+), 0 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index b24092e..8b4a39a 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -241,6 +241,8 @@ dist_vapi_DATA = \
 	webkit-1.0.vapi \
 	x11.vapi \
 	xcb.vapi \
+	xtst.vapi \
+	xtst.deps \
 	zlib.vapi \
 	$(NULL)
 
diff --git a/vapi/xtst.deps b/vapi/xtst.deps
new file mode 100644
index 0000000..e181da0
--- /dev/null
+++ b/vapi/xtst.deps
@@ -0,0 +1 @@
+x11
diff --git a/vapi/xtst.vapi b/vapi/xtst.vapi
new file mode 100644
index 0000000..a6c4bd0
--- /dev/null
+++ b/vapi/xtst.vapi
@@ -0,0 +1,56 @@
+/* xtst.vapi
+ *
+ * Copyright (C) 2012  Alexander Kurtz
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
+ *
+ * Author:
+ * 	Alexander Kurtz <kurtz alex googlemail com>
+ */
+
+namespace XTest {
+	[CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestQueryExtension")]
+	public static bool query_extension (X.Display display, out int event_base_return, out int error_base_return, out int major_version_return, out int minor_version_return);
+
+	[CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestCompareCursorWithWindow")]
+	public static bool compare_cursor_with_window (X.Display display, X.Window window, X.Cursor cursor);
+
+	[CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestCompareCurrentCursorWithWindow")]
+	public static bool compare_current_cursor_with_window (X.Display display, X.Window window);
+
+	[CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestFakeKeyEvent")]
+	public static int fake_key_event (X.Display display, uint keycode, bool is_press, ulong delay);
+
+	[CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestFakeButtonEvent")]
+	public static int fake_button_event (X.Display display, uint button, bool is_press, ulong delay);
+
+	[CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestFakeMotionEvent")]
+	public static int fake_motion_event (X.Display display, int screen_number, int x, int y, ulong delay);
+
+	[CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestFakeRelativeMotionEvent")]
+	public static int fake_relative_motion_event (X.Display display, int screen_number, int x, int y, ulong delay);
+
+	[CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestGrabControl")]
+	public static int grab_control (X.Display display, bool impervious);
+
+	[CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestSetGContextOfGC")]
+	public static void set_g_context_of_gc (X.GC gc, X.GContext gid);
+
+	[CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestSetVisualIDOfVisual")]
+	public static void set_visual_id_of_visual (X.Visual visual, X.VisualID visualid);
+
+	[CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestDiscard")]
+	public static X.Status discard (X.Display display);
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]