3 * Copyright (C) 2012 Alexander Kurtz
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 * Alexander Kurtz <kurtz.alex@googlemail.com>
24 [CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestQueryExtension")]
25 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);
27 [CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestCompareCursorWithWindow")]
28 public static bool compare_cursor_with_window (X.Display display, X.Window window, X.Cursor cursor);
30 [CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestCompareCurrentCursorWithWindow")]
31 public static bool compare_current_cursor_with_window (X.Display display, X.Window window);
33 [CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestFakeKeyEvent")]
34 public static int fake_key_event (X.Display display, uint keycode, bool is_press, ulong delay);
36 [CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestFakeButtonEvent")]
37 public static int fake_button_event (X.Display display, uint button, bool is_press, ulong delay);
39 [CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestFakeMotionEvent")]
40 public static int fake_motion_event (X.Display display, int screen_number, int x, int y, ulong delay);
42 [CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestFakeRelativeMotionEvent")]
43 public static int fake_relative_motion_event (X.Display display, int screen_number, int x, int y, ulong delay);
45 [CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestGrabControl")]
46 public static int grab_control (X.Display display, bool impervious);
48 [CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestSetGContextOfGC")]
49 public static void set_g_context_of_gc (X.GC gc, X.GContext gid);
51 [CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestSetVisualIDOfVisual")]
52 public static void set_visual_id_of_visual (X.Visual visual, X.VisualID visualid);
54 [CCode (cheader_filename = "X11/extensions/XTest.h", cname = "XTestDiscard")]
55 public static X.Status discard (X.Display display);