xlib 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. checksums.yaml +7 -0
  2. data/lib/x.rb +11 -0
  3. data/lib/x/constants.rb +614 -0
  4. data/lib/x/extensions.rb +10 -0
  5. data/lib/x/extensions/randr.rb +10 -0
  6. data/lib/x/extensions/randr/constants.rb +160 -0
  7. data/lib/x/extensions/randr/types.rb +18 -0
  8. data/lib/x/extensions/render.rb +10 -0
  9. data/lib/x/extensions/render/constants.rb +155 -0
  10. data/lib/x/extensions/render/types.rb +15 -0
  11. data/lib/x/types.rb +24 -0
  12. data/lib/xlib.rb +29 -0
  13. data/lib/xlib/constants.rb +119 -0
  14. data/lib/xlib/extensions.rb +10 -0
  15. data/lib/xlib/extensions/xrandr.rb +25 -0
  16. data/lib/xlib/extensions/xrandr/functions.rb +101 -0
  17. data/lib/xlib/extensions/xrandr/struct/crtc_change_notify_event.rb +24 -0
  18. data/lib/xlib/extensions/xrandr/struct/crtc_gamma.rb +16 -0
  19. data/lib/xlib/extensions/xrandr/struct/crtc_info.rb +24 -0
  20. data/lib/xlib/extensions/xrandr/struct/crtc_transform_attributes.rb +20 -0
  21. data/lib/xlib/extensions/xrandr/struct/mode_info.rb +26 -0
  22. data/lib/xlib/extensions/xrandr/struct/notify_event.rb +17 -0
  23. data/lib/xlib/extensions/xrandr/struct/output_change_notify_event.rb +24 -0
  24. data/lib/xlib/extensions/xrandr/struct/output_info.rb +27 -0
  25. data/lib/xlib/extensions/xrandr/struct/output_property_notify_event.rb +21 -0
  26. data/lib/xlib/extensions/xrandr/struct/panning.rb +25 -0
  27. data/lib/xlib/extensions/xrandr/struct/property_info.rb +17 -0
  28. data/lib/xlib/extensions/xrandr/struct/provider_change_notify_event.rb +20 -0
  29. data/lib/xlib/extensions/xrandr/struct/provider_info.rb +21 -0
  30. data/lib/xlib/extensions/xrandr/struct/provider_property_notify_event.rb +21 -0
  31. data/lib/xlib/extensions/xrandr/struct/provider_resources.rb +14 -0
  32. data/lib/xlib/extensions/xrandr/struct/resource_change_notify_event.rb +18 -0
  33. data/lib/xlib/extensions/xrandr/struct/screen_change_notify_event.rb +26 -0
  34. data/lib/xlib/extensions/xrandr/struct/screen_resources.rb +20 -0
  35. data/lib/xlib/extensions/xrandr/struct/screen_size.rb +16 -0
  36. data/lib/xlib/extensions/xrandr/types.rb +36 -0
  37. data/lib/xlib/extensions/xrender.rb +24 -0
  38. data/lib/xlib/extensions/xrender/constants.rb +28 -0
  39. data/lib/xlib/extensions/xrender/functions.rb +29 -0
  40. data/lib/xlib/extensions/xrender/struct/anim_cursor.rb +14 -0
  41. data/lib/xlib/extensions/xrender/struct/circle.rb +15 -0
  42. data/lib/xlib/extensions/xrender/struct/conical_gradient.rb +14 -0
  43. data/lib/xlib/extensions/xrender/struct/filters.rb +16 -0
  44. data/lib/xlib/extensions/xrender/struct/glyph_elt16.rb +17 -0
  45. data/lib/xlib/extensions/xrender/struct/glyph_elt32.rb +17 -0
  46. data/lib/xlib/extensions/xrender/struct/glyph_elt8.rb +17 -0
  47. data/lib/xlib/extensions/xrender/struct/glyph_info.rb +18 -0
  48. data/lib/xlib/extensions/xrender/struct/index_value.rb +17 -0
  49. data/lib/xlib/extensions/xrender/struct/line_fixed.rb +14 -0
  50. data/lib/xlib/extensions/xrender/struct/linear_gradient.rb +14 -0
  51. data/lib/xlib/extensions/xrender/struct/point_double.rb +14 -0
  52. data/lib/xlib/extensions/xrender/struct/point_fixed.rb +14 -0
  53. data/lib/xlib/extensions/xrender/struct/radial_gradient.rb +14 -0
  54. data/lib/xlib/extensions/xrender/struct/render_color.rb +16 -0
  55. data/lib/xlib/extensions/xrender/struct/render_direct_format.rb +20 -0
  56. data/lib/xlib/extensions/xrender/struct/render_pict_format.rb +17 -0
  57. data/lib/xlib/extensions/xrender/struct/render_picture_attributes.rb +25 -0
  58. data/lib/xlib/extensions/xrender/struct/span_fix.rb +15 -0
  59. data/lib/xlib/extensions/xrender/struct/transform.rb +13 -0
  60. data/lib/xlib/extensions/xrender/struct/trap.rb +14 -0
  61. data/lib/xlib/extensions/xrender/struct/trapezoid.rb +16 -0
  62. data/lib/xlib/extensions/xrender/struct/triangle.rb +15 -0
  63. data/lib/xlib/extensions/xrender/types.rb +37 -0
  64. data/lib/xlib/functions.rb +396 -0
  65. data/lib/xlib/struct/any_event.rb +17 -0
  66. data/lib/xlib/struct/button_event.rb +27 -0
  67. data/lib/xlib/struct/circulate_event.rb +19 -0
  68. data/lib/xlib/struct/circulate_request_event.rb +19 -0
  69. data/lib/xlib/struct/client_message_event.rb +27 -0
  70. data/lib/xlib/struct/colormap_event.rb +20 -0
  71. data/lib/xlib/struct/configure_event.rb +25 -0
  72. data/lib/xlib/struct/configure_request_event.rb +26 -0
  73. data/lib/xlib/struct/create_window_event.rb +24 -0
  74. data/lib/xlib/struct/crossing_event.rb +29 -0
  75. data/lib/xlib/struct/destroy_window_event.rb +18 -0
  76. data/lib/xlib/struct/display.rb +56 -0
  77. data/lib/xlib/struct/error_event.rb +19 -0
  78. data/lib/xlib/struct/event.rb +48 -0
  79. data/lib/xlib/struct/expose_event.rb +22 -0
  80. data/lib/xlib/struct/focus_change_event.rb +19 -0
  81. data/lib/xlib/struct/gc.rb +14 -0
  82. data/lib/xlib/struct/gc_values.rb +35 -0
  83. data/lib/xlib/struct/generic_event.rb +18 -0
  84. data/lib/xlib/struct/generic_event_cookie.rb +20 -0
  85. data/lib/xlib/struct/graphics_expose_event.rb +25 -0
  86. data/lib/xlib/struct/gravity_event.rb +20 -0
  87. data/lib/xlib/struct/image.rb +37 -0
  88. data/lib/xlib/struct/key_event.rb +27 -0
  89. data/lib/xlib/struct/key_sym.rb +28 -0
  90. data/lib/xlib/struct/keymap_event.rb +18 -0
  91. data/lib/xlib/struct/map_event.rb +19 -0
  92. data/lib/xlib/struct/map_request_event.rb +22 -0
  93. data/lib/xlib/struct/mapping_event.rb +20 -0
  94. data/lib/xlib/struct/motion_event.rb +27 -0
  95. data/lib/xlib/struct/no_expose_event.rb +19 -0
  96. data/lib/xlib/struct/point.rb +14 -0
  97. data/lib/xlib/struct/property_event.rb +20 -0
  98. data/lib/xlib/struct/reparent_event.rb +22 -0
  99. data/lib/xlib/struct/resize_request_event.rb +19 -0
  100. data/lib/xlib/struct/screen.rb +31 -0
  101. data/lib/xlib/struct/selection_clear_event.rb +19 -0
  102. data/lib/xlib/struct/selection_event.rb +21 -0
  103. data/lib/xlib/struct/selection_request_event.rb +22 -0
  104. data/lib/xlib/struct/unmap_event.rb +19 -0
  105. data/lib/xlib/struct/visibility_event.rb +18 -0
  106. data/lib/xlib/struct/visual.rb +20 -0
  107. data/lib/xlib/struct/window_attributes.rb +35 -0
  108. data/lib/xlib/types.rb +73 -0
  109. metadata +164 -0
@@ -0,0 +1,14 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XPointDouble < FFI::Struct
11
+ layout \
12
+ :x, :XDouble,
13
+ :y, :XDouble
14
+ end
@@ -0,0 +1,14 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XPointFixed < FFI::Struct
11
+ layout \
12
+ :x, :XFixed,
13
+ :y, :XFixed
14
+ end
@@ -0,0 +1,14 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XRadialGradient < FFI::Struct
11
+ layout \
12
+ :inner, Xlib::XCircle,
13
+ :outer, Xlib::XCircle
14
+ end
@@ -0,0 +1,16 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XRenderColor < FFI::Struct
11
+ layout \
12
+ :red, :ushort,
13
+ :green, :ushort,
14
+ :blue, :ushort,
15
+ :alpha, :ushort
16
+ end
@@ -0,0 +1,20 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XRenderDirectFormat < FFI::Struct
11
+ layout \
12
+ :red, :short,
13
+ :redMask, :short,
14
+ :green, :short,
15
+ :greenMask, :short,
16
+ :blue, :short,
17
+ :blueMask, :short,
18
+ :alpha, :short,
19
+ :alphaMask, :short
20
+ end
@@ -0,0 +1,17 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XRenderPictFormat < FFI::Struct
11
+ layout \
12
+ :id, :PictFormat,
13
+ :type, :int,
14
+ :depth, :int,
15
+ :direct, Xlib::XRenderDirectFormat,
16
+ :colormap, :Colormap
17
+ end
@@ -0,0 +1,25 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XRenderPictureAttributes < FFI::Struct
11
+ layout \
12
+ :repeat, :int,
13
+ :alpha_map, :Picture,
14
+ :alpha_x_origin, :int,
15
+ :alpha_y_origin, :int,
16
+ :clip_x_origin, :int,
17
+ :clip_y_origin, :int,
18
+ :clip_mask, :Pixmap,
19
+ :graphics_exposures, :Bool,
20
+ :subwindow_mode, :int,
21
+ :poly_edge, :int,
22
+ :poly_mode, :int,
23
+ :dither, :Atom,
24
+ :component_alpha, :Bool
25
+ end
@@ -0,0 +1,15 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XSpanFix < FFI::Struct
11
+ layout \
12
+ :left, :XFixed,
13
+ :right, :XFixed,
14
+ :y, :XFixed
15
+ end
@@ -0,0 +1,13 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XTransform < FFI::Struct
11
+ layout \
12
+ :matrix, [[:XFixed, 3], 3]
13
+ end
@@ -0,0 +1,14 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XSpanFix < FFI::Struct
11
+ layout \
12
+ :top, Xlib::XSpanFix,
13
+ :bottom, Xlib::XSpanFix
14
+ end
@@ -0,0 +1,16 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XTrapezoid < FFI::Struct
11
+ layout \
12
+ :top, :XFixed,
13
+ :bottom, :XFixed,
14
+ :left, Xlib::XLineFixed,
15
+ :right, Xlib::XLineFixed
16
+ end
@@ -0,0 +1,15 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ class Xlib::XTriangle < FFI::Struct
11
+ layout \
12
+ :p1, Xlib::XPointFixed,
13
+ :p2, Xlib::XPointFixed,
14
+ :p3, Xlib::XPointFixed
15
+ end
@@ -0,0 +1,37 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ module FFI
11
+ typedef :double, :XDouble
12
+ typedef :int, :XFixed
13
+ end
14
+
15
+ require_relative 'struct/render_direct_format'
16
+ require_relative 'struct/render_pict_format'
17
+ require_relative 'struct/render_picture_attributes'
18
+ require_relative 'struct/render_color'
19
+ require_relative 'struct/glyph_info'
20
+ require_relative 'struct/glyph_elt8'
21
+ require_relative 'struct/glyph_elt16'
22
+ require_relative 'struct/glyph_elt32'
23
+ require_relative 'struct/point_double'
24
+ require_relative 'struct/point_fixed'
25
+ require_relative 'struct/line_fixed'
26
+ require_relative 'struct/triangle'
27
+ require_relative 'struct/circle'
28
+ require_relative 'struct/trapezoid'
29
+ require_relative 'struct/transform'
30
+ require_relative 'struct/filters'
31
+ require_relative 'struct/index_value'
32
+ require_relative 'struct/anim_cursor'
33
+ require_relative 'struct/span_fix'
34
+ require_relative 'struct/trap'
35
+ require_relative 'struct/linear_gradient'
36
+ require_relative 'struct/radial_gradient'
37
+ require_relative 'struct/conical_gradient'
@@ -0,0 +1,396 @@
1
+ #
2
+ # Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
3
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
4
+ #
5
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
6
+ # the LICENSE file found in the top-level directory of this distribution and at
7
+ # http://github.com/christopheraue/ruby-xlib.
8
+ #
9
+
10
+ module Xlib
11
+
12
+ attach_function :XLoadQueryFont, [:pointer, :string], :pointer
13
+ attach_function :XQueryFont, [:pointer, :XID], :pointer
14
+
15
+ attach_function :XGetMotionEvents, [:pointer, :Window, :Time, :Time, :pointer], :pointer
16
+
17
+ attach_function :XDeleteModifiermapEntry, [:pointer, :KeyCode, :int], :pointer
18
+ attach_function :XGetModifierMapping, [:pointer], :pointer
19
+ attach_function :XInsertModifiermapEntry, [:pointer, :KeyCode, :int], :pointer
20
+ attach_function :XNewModifiermap, [:int], :pointer
21
+
22
+ attach_function :XCreateImage, [:pointer, :pointer, :uint, :int, :int, :pointer, :int, :int, :int, :int], :pointer
23
+ attach_function :XInitImage, [:pointer], :Status
24
+ attach_function :XGetImage, [:pointer, :Drawable, :int, :int, :uint, :uint, :ulong, :int], :pointer
25
+ attach_function :XGetSubImage, [:pointer, :Drawable, :int, :int, :uint, :uint, :ulong, :int, :pointer, :int, :int], :pointer
26
+
27
+ attach_function :XOpenDisplay, [:string], :pointer
28
+ attach_function :XrmInitialize, [], :void
29
+
30
+ attach_function :XFetchBytes, [:pointer, :int], :pointer
31
+ attach_function :XFetchBuffer, [:pointer, :pointer, :int], :pointer
32
+
33
+ attach_function :XGetAtomName, [:pointer, :Atom], :string
34
+ attach_function :XGetAtomNames, [:pointer, :pointer, :int, :pointer], :Status
35
+
36
+ attach_function :XGetDefault, [:pointer, :string, :string], :string
37
+ attach_function :XDisplayName, [:string], :string
38
+
39
+ attach_function :XKeysymToString, [:KeySym], :string
40
+
41
+ attach_function :XInternAtom, [:pointer, :string, :Bool], :Atom
42
+ attach_function :XInternAtoms, [:pointer, :pointer, :int, :Bool, :pointer], :Status
43
+
44
+ attach_function :XCopyColormapAndFree, [:pointer, :Colormap], :Colormap
45
+ attach_function :XCreateColormap, [:pointer, :Window, :pointer, :int], :Colormap
46
+
47
+ attach_function :XCreatePixmapCursor, [:pointer, :Pixmap, :Pixmap, :pointer, :pointer, :uint, :uint], :Cursor
48
+ attach_function :XCreateGlyphCursor, [:pointer, :Font, :Font, :uint, :uint, :pointer, :pointer], :Cursor
49
+ attach_function :XCreateFontCursor, [:pointer, :uint], :Cursor
50
+
51
+ attach_function :XLoadFont, [:pointer, :string], :Font
52
+
53
+ attach_function :XCreateGC, [:pointer, :Drawable, :ulong, :pointer], :GC
54
+ attach_function :XGContextFromGC, [:GC], :GContext
55
+ attach_function :XFlushGC, [:pointer, :GC], :void
56
+
57
+ attach_function :XCreatePixmap, [:pointer, :Drawable, :uint, :uint, :uint], :Pixmap
58
+ attach_function :XCreateBitmapFromData, [:pointer, :Drawable, :pointer, :int, :int], :Pixmap
59
+ attach_function :XCreatePixmapFromBitmapData, [:pointer, :Drawable, :pointer, :uint, :uint, :ulong, :ulong, :uint], :Pixmap
60
+
61
+ attach_function :XCreateSimpleWindow, [:pointer, :Window, :int, :int, :uint, :uint, :uint, :ulong, :ulong], :Window
62
+ attach_function :XGetSelectionOwner, [:pointer, :Atom], :Window
63
+ attach_function :XCreateWindow, [:pointer, :Window, :int, :int, :uint, :uint, :uint, :int, :uint, :pointer, :ulong, :pointer], :Window
64
+
65
+ attach_function :XListInstalledColormaps, [:pointer, :Window, :pointer], :pointer
66
+ attach_function :XListFonts, [:pointer, :string, :int, :pointer], :pointer
67
+ attach_function :XListFontsWithInfo, [:pointer, :string, :int, :pointer, :pointer], :pointer
68
+ attach_function :XGetFontPath, [:pointer, :int], :pointer
69
+ attach_function :XListExtensions, [:pointer, :pointer], :pointer
70
+ attach_function :XListProperties, [:pointer, :Window, :pointer], :pointer
71
+ attach_function :XListHosts, [:pointer, :pointer, :pointer], :pointer
72
+
73
+ attach_function :XKeycodeToKeysym, [:pointer, :KeyCode, :int], :KeySym
74
+ attach_function :XLookupKeysym, [:pointer, :int], :KeySym
75
+ attach_function :XGetKeyboardMapping, [:pointer, :KeyCode, :int, :pointer], :pointer
76
+ attach_function :XStringToKeysym, [:string], :KeySym
77
+
78
+ attach_function :XMaxRequestSize, [:pointer], :long
79
+ attach_function :XExtendedMaxRequestSize, [:pointer], :long
80
+
81
+ attach_function :XResourceManagerString, [:pointer], :string
82
+ attach_function :XScreenResourceString, [:pointer], :string
83
+
84
+ attach_function :XDisplayMotionBufferSize, [:pointer], :ulong
85
+
86
+ attach_function :XVisualIDFromVisual, [:pointer], :VisualID
87
+
88
+ # multithread routines
89
+ attach_function :XInitThreads, [], :Status
90
+ attach_function :XLockDisplay, [:pointer], :void
91
+ attach_function :XUnlockDisplay, [:pointer], :void
92
+
93
+ # routines for dealing with extensions
94
+ attach_function :XInitExtension, [:pointer, :string], :pointer
95
+ attach_function :XAddExtension, [:pointer], :pointer
96
+ attach_function :XFindOnExtensionList, [:pointer, :int], :pointer
97
+ #attach_function :XEHeadOfExtensionList, [XEDataObject], :pointer
98
+
99
+ # these are routines for which there are also macros
100
+ attach_function :XRootWindow, [:pointer, :int], :Window
101
+ attach_function :XDefaultRootWindow, [:pointer], :Window
102
+ attach_function :XRootWindowOfScreen, [:pointer], :Window
103
+ attach_function :XDefaultVisual, [:pointer, :int], :pointer
104
+ attach_function :XDefaultVisualOfScreen, [:pointer], :pointer
105
+ attach_function :XDefaultGC, [:pointer, :int], :GC
106
+ attach_function :XDefaultGCOfScreen, [:pointer], :GC
107
+ attach_function :XBlackPixel, [:pointer, :int], :ulong
108
+ attach_function :XWhitePixel, [:pointer, :int], :ulong
109
+ attach_function :XAllPlanes, [], :ulong
110
+ attach_function :XBlackPixelOfScreen, [:pointer], :ulong
111
+ attach_function :XWhitePixelOfScreen, [:pointer], :ulong
112
+ attach_function :XNextRequest, [:pointer], :ulong
113
+ attach_function :XLastKnownRequestProcessed, [:pointer], :ulong
114
+ attach_function :XServerVendor, [:pointer], :string
115
+ attach_function :XDisplayString, [:pointer], :string
116
+ attach_function :XDefaultColormap, [:pointer, :int], :Colormap
117
+ attach_function :XDefaultColormapOfScreen, [:pointer], :Colormap
118
+ attach_function :XDisplayOfScreen, [:pointer], :pointer
119
+ attach_function :XScreenOfDisplay, [:pointer, :int], :pointer
120
+ attach_function :XDefaultScreenOfDisplay, [:pointer], :pointer
121
+ attach_function :XEventMaskOfScreen, [:pointer], :long
122
+ attach_function :XScreenNumberOfScreen, [:pointer], :int
123
+
124
+ attach_function :XSetErrorHandler, [:pointer], :pointer
125
+ attach_function :XSetIOErrorHandler, [:pointer], :pointer
126
+
127
+ attach_function :XListPixmapFormats, [:pointer, :pointer], :pointer
128
+ attach_function :XListDepths, [:pointer, :int, :pointer], :pointer
129
+
130
+ # ICCCM routines for things that don't require special include files
131
+ attach_function :XReconfigureWMWindow, [:pointer, :Window, :int, :uint, :pointer], :Status
132
+ attach_function :XGetWMProtocols, [:pointer, :Window, :pointer, :pointer], :Status
133
+ attach_function :XSetWMProtocols, [:pointer, :Window, :pointer, :int], :Status
134
+ attach_function :XIconifyWindow, [:pointer, :Window, :int], :Status
135
+ attach_function :XWithdrawWindow, [:pointer, :Window, :int], :Status
136
+ attach_function :XGetCommand, [:pointer, :Window, :pointer, :pointer], :Status
137
+ attach_function :XGetWMColormapWindows, [:pointer, :Window, :pointer, :pointer], :Status
138
+ attach_function :XSetWMColormapWindows, [:pointer, :Window, :pointer, :int], :Status
139
+ attach_function :XFreeStringList, [:pointer], :void
140
+ attach_function :XSetTransientForHint, [:pointer, :Window, :Window], :int
141
+
142
+ # The following are given in alphabetical order
143
+ attach_function :XActivateScreenSaver, [:pointer], :int
144
+ attach_function :XAddHost, [:pointer, :pointer], :int
145
+ attach_function :XAddHosts, [:pointer, :pointer, :int], :int
146
+ attach_function :XAddToExtensionList, [:pointer, :pointer], :int
147
+ attach_function :XAddToSaveSet, [:pointer, :Window], :int
148
+ attach_function :XAllocColor, [:pointer, :Colormap, :pointer], :Status
149
+ attach_function :XAllocColorCells, [:pointer, :Colormap, :Bool, :pointer, :uint, :pointer, :uint], :Status
150
+ attach_function :XAllocColorPlanes, [:pointer, :Colormap,:Bool, :pointer, :int, :int, :int, :int, :pointer, :pointer, :pointer], :Status
151
+ attach_function :XAllocNamedColor, [:pointer, :Colormap, :string, :pointer, :pointer], :Status
152
+ attach_function :XAllowEvents, [:pointer, :int, :Time], :int
153
+ attach_function :XAutoRepeatOff, [:pointer], :int
154
+ attach_function :XAutoRepeatOn, [:pointer], :int
155
+ attach_function :XBell, [:pointer, :int], :int
156
+ attach_function :XBitmapBitOrder, [:pointer], :int
157
+ attach_function :XBitmapPad, [:pointer], :int
158
+ attach_function :XBitmapUnit, [:pointer], :int
159
+ attach_function :XCellsOfScreen, [:pointer], :int
160
+ attach_function :XChangeActivePointerGrab, [:pointer, :uint, :Cursor, :Time], :int
161
+ attach_function :XChangeGC, [:pointer, :GC, :ulong, :pointer], :int
162
+ attach_function :XChangeKeyboardControl, [:pointer, :ulong, :pointer], :int
163
+ attach_function :XChangePointerControl, [:pointer, :Bool, :Bool, :int, :int, :int], :int
164
+ attach_function :XChangeProperty, [:pointer, :Window, :Atom, :Atom, :int, :int, :pointer, :int], :int
165
+ attach_function :XChangeSaveSet, [:pointer, :Window, :int], :int
166
+ attach_function :XChangeWindowAttributes, [:pointer, :Window, :ulong, :pointer], :int
167
+ attach_function :XCheckIfEvent, [:pointer, :pointer, :pointer, :pointer], :Bool
168
+ attach_function :XCheckMaskEvent, [:pointer, :long, :pointer], :Bool
169
+ attach_function :XCheckTypedEvent, [:pointer, :int, :pointer], :Bool
170
+ attach_function :XCheckTypedWindowEvent, [:pointer, :Window, :int, :pointer], :Bool
171
+ attach_function :XCheckWindowEvent, [:pointer, :Window, :long, :pointer], :Bool
172
+ attach_function :XCirculateSubwindows, [:pointer, :Window, :int], :int
173
+ attach_function :XCirculateSubwindowsDown, [:pointer, :Window], :int
174
+ attach_function :XCirculateSubwindowsUp, [:pointer, :Window], :int
175
+ attach_function :XClearArea, [:pointer, :Window, :int, :int, :uint, :uint, :Bool], :int
176
+ attach_function :XClearWindow, [:pointer, :Window], :int
177
+ attach_function :XCloseDisplay, [:pointer], :int
178
+ attach_function :XConfigureWindow, [:pointer, :Window, :uint, :pointer], :int
179
+ attach_function :XConnectionNumber, [:pointer], :int
180
+ attach_function :XConvertSelection, [:pointer, :Atom, :Atom, :Atom, :Window, :Time], :int
181
+ attach_function :XCopyArea, [:pointer, :Drawable, :Drawable, :GC, :int, :int, :uint, :uint, :int, :int], :int
182
+ attach_function :XCopyGC, [:pointer, :GC, :ulong, :GC], :int
183
+ attach_function :XCopyPlane, [:pointer, :Drawable, :Drawable, :GC, :int, :int, :uint, :uint, :int, :int, :ulong], :int
184
+ attach_function :XDefaultDepth, [:pointer, :int], :int
185
+ attach_function :XDefaultDepthOfScreen, [:pointer], :int
186
+ attach_function :XDefaultScreen, [:pointer], :int
187
+ attach_function :XDefineCursor, [:pointer, :Window, :Cursor], :int
188
+ attach_function :XDeleteProperty, [:pointer, :Window, :Atom], :int
189
+ attach_function :XDestroyWindow, [:pointer, :Window], :int
190
+ attach_function :XDestroySubwindows, [:pointer, :Window], :int
191
+ attach_function :XDoesBackingStore, [:pointer], :int
192
+ attach_function :XDoesSaveUnders, [:pointer], :Bool
193
+ attach_function :XDisableAccessControl, [:pointer], :int
194
+ attach_function :XDisplayCells, [:pointer, :int], :int
195
+ attach_function :XDisplayHeight, [:pointer, :int], :int
196
+ attach_function :XDisplayHeightMM, [:pointer, :int], :int
197
+ attach_function :XDisplayKeycodes, [:pointer, :pointer, :pointer], :int
198
+ attach_function :XDisplayPlanes, [:pointer, :int], :int
199
+ attach_function :XDisplayWidth, [:pointer, :int], :int
200
+ attach_function :XDisplayWidthMM, [:pointer, :int], :int
201
+ attach_function :XDrawArc, [:pointer, :Drawable, :GC, :int, :int, :uint, :uint, :int, :int], :int
202
+ attach_function :XDrawArcs, [:pointer, :Drawable, :GC, :pointer, :int], :int
203
+ attach_function :XDrawImageString, [:pointer, :Drawable, :GC, :int, :int, :pointer, :int], :int
204
+ attach_function :XDrawImageString16, [:pointer, :Drawable, :GC, :int, :int, :pointer, :int], :int
205
+ attach_function :XDrawLine, [:pointer, :Drawable, :GC, :int, :int, :int, :int], :int
206
+ attach_function :XDrawLines, [:pointer, :Drawable, :GC, :pointer, :int, :int], :int
207
+ attach_function :XDrawPoint, [:pointer, :Drawable, :GC, :int, :int], :int
208
+ attach_function :XDrawPoints, [:pointer, :Drawable, :GC, :pointer, :int, :int], :int
209
+ attach_function :XDrawRectangle, [:pointer, :Drawable, :GC, :int, :int, :uint, :uint], :int
210
+ attach_function :XDrawRectangles, [:pointer, :Drawable, :GC, :pointer, :int], :int
211
+ attach_function :XDrawSegments, [:pointer, :Drawable, :GC, :pointer, :int], :int
212
+ attach_function :XDrawString, [:pointer, :Drawable, :GC, :int, :int, :pointer, :int], :int
213
+ attach_function :XDrawString16, [:pointer, :Drawable, :GC, :int, :int, :pointer, :int], :int
214
+ attach_function :XDrawText, [:pointer, :Drawable, :GC, :int, :int, :pointer, :int], :int
215
+ attach_function :XDrawText16, [:pointer, :Drawable, :GC, :int, :int, :pointer, :int], :int
216
+ attach_function :XEnableAccessControl, [:pointer], :int
217
+ attach_function :XEventsQueued, [:pointer, :int], :int
218
+ attach_function :XFetchName, [:pointer, :Window, :pointer], :Status
219
+ attach_function :XFillArc, [:pointer, :Drawable, :GC, :int, :int, :uint, :uint, :int, :int], :int
220
+ attach_function :XFillArcs, [:pointer, :Drawable, :GC, :pointer, :int], :int
221
+ attach_function :XFillPolygon, [:pointer, :Drawable, :GC, :pointer, :int, :int, :int], :int
222
+ attach_function :XFillRectangle, [:pointer, :Drawable, :GC, :int, :int, :uint, :uint], :int
223
+ attach_function :XFillRectangles, [:pointer, :Drawable, :GC, :pointer, :int], :int
224
+ attach_function :XFlush, [:pointer], :int
225
+ attach_function :XForceScreenSaver, [:pointer, :int], :int
226
+ attach_function :XFree, [:pointer], :int
227
+ attach_function :XFreeColormap, [:pointer, :Colormap], :int
228
+ attach_function :XFreeColors, [:pointer, :Colormap, :pointer, :int, :ulong], :int
229
+ attach_function :XFreeCursor, [:pointer, :Cursor], :int
230
+ attach_function :XFreeExtensionList, [:pointer], :int
231
+ attach_function :XFreeFont, [:pointer, :pointer], :int
232
+ attach_function :XFreeFontInfo, [:pointer, :pointer, :int], :int
233
+ attach_function :XFreeFontNames, [:pointer], :int
234
+ attach_function :XFreeFontPath, [:pointer], :int
235
+ attach_function :XFreeGC, [:pointer, :GC], :int
236
+ attach_function :XFreeModifiermap, [:pointer], :int
237
+ attach_function :XFreePixmap, [:pointer, :Pixmap], :int
238
+ attach_function :XGeometry, [:pointer, :int, :pointer, :pointer, :uint, :uint, :uint, :int, :int, :pointer, :pointer, :pointer, :pointer], :int
239
+ attach_function :XGetErrorDatabaseText, [:pointer, :string, :string, :string, :pointer, :int], :int
240
+ attach_function :XGetErrorText, [:pointer, :int, :pointer, :int], :int
241
+ attach_function :XGetFontProperty, [:pointer, :Atom, :ulong], :Bool
242
+ attach_function :XGetGCValues, [:pointer, :GC, :ulong, :pointer], :Status
243
+ attach_function :XGetGeometry, [:pointer, :Drawable, :pointer, :pointer, :pointer, :pointer, :pointer, :pointer, :pointer], :Status
244
+ attach_function :XGetIconName, [:pointer, :Window, :pointer], :Status
245
+ attach_function :XGetInputFocus, [:pointer, :pointer, :pointer], :int
246
+ attach_function :XGetKeyboardControl, [:pointer, :pointer], :int
247
+ attach_function :XGetPointerControl, [:pointer, :pointer, :pointer, :pointer], :int
248
+ attach_function :XGetPointerMapping, [:pointer, :pointer, :int], :int
249
+ attach_function :XGetScreenSaver, [:pointer, :pointer, :pointer, :pointer, :pointer], :int
250
+ attach_function :XGetTransientForHint, [:pointer, :Window, :pointer], :Status
251
+ attach_function :XGetWindowProperty, [:pointer, :Window, :Atom, :long, :long, :Bool, :Atom, :pointer, :pointer, :pointer, :pointer, :pointer], :int
252
+ attach_function :XGetWindowAttributes, [:pointer, :Window, :pointer], :Status
253
+ attach_function :XGrabButton, [:pointer, :uint, :uint, :Window, :Bool, :uint, :int, :int, :Window, :Cursor], :int
254
+ attach_function :XGrabKey, [:pointer, :int, :uint, :Window, :Bool, :int, :int], :int
255
+ attach_function :XGrabKeyboard, [:pointer, :Window, :Bool, :int, :int, :Time], :int
256
+ attach_function :XGrabPointer, [:pointer, :Window, :Bool, :uint, :int, :int, :Window, :Cursor, :Time], :int
257
+ attach_function :XGrabServer, [:pointer], :int
258
+ attach_function :XHeightOfScreen, [:pointer], :int
259
+ attach_function :XIfEvent, [:pointer, :pointer, :pointer, :pointer], :int
260
+ attach_function :XImageByteOrder, [:pointer], :int
261
+ attach_function :XInstallColormap, [:pointer, :Colormap], :int
262
+ attach_function :XKeysymToKeycode, [:pointer, :KeySym], :KeyCode
263
+ attach_function :XKillClient, [:pointer, :XID], :int
264
+ attach_function :XLookupColor, [:pointer, :Colormap, :string, :pointer, :pointer], :Status
265
+ attach_function :XLowerWindow, [:pointer, :Window], :int
266
+ attach_function :XMapRaised, [:pointer, :Window], :int
267
+ attach_function :XMapSubwindows, [:pointer, :Window], :int
268
+ attach_function :XMapWindow, [:pointer, :Window], :int
269
+ attach_function :XMaskEvent, [:pointer, :long, :pointer], :int
270
+ attach_function :XMaxCmapsOfScreen, [:pointer], :int
271
+ attach_function :XMinCmapsOfScreen, [:pointer], :int
272
+ attach_function :XMoveResizeWindow, [:pointer, :Window, :int, :int, :uint, :uint], :int
273
+ attach_function :XMoveWindow, [:pointer, :Window, :int, :int], :int
274
+ attach_function :XNextEvent, [:pointer, :pointer], :int
275
+ attach_function :XNoOp, [:pointer], :int
276
+ attach_function :XParseColor, [:pointer, :Colormap, :string, :pointer], :Status
277
+ attach_function :XParseGeometry, [:string, :pointer, :pointer, :pointer, :pointer], :int
278
+ attach_function :XPeekEvent, [:pointer, :pointer], :int
279
+ attach_function :XPeekIfEvent, [:pointer, :pointer, :pointer, :pointer], :int
280
+ attach_function :XPending, [:pointer], :int
281
+ attach_function :XPlanesOfScreen, [:pointer], :int
282
+ attach_function :XProtocolRevision, [:pointer], :int
283
+ attach_function :XProtocolVersion, [:pointer], :int
284
+ attach_function :XPutBackEvent, [:pointer, :pointer], :int
285
+ attach_function :XPutImage, [:pointer, :Drawable, :GC, :pointer, :int, :int, :int, :int, :uint, :uint], :int
286
+ attach_function :XQLength, [:pointer], :int
287
+ attach_function :XQueryBestCursor, [:pointer, :Drawable, :uint, :uint, :pointer, :pointer], :int
288
+ attach_function :XQueryBestSize, [:pointer, :int, :Drawable, :uint, :uint, :pointer, :pointer], :int
289
+ attach_function :XQueryBestStipple, [:pointer, :Drawable, :uint, :uint, :pointer, :pointer], :int
290
+ attach_function :XQueryBestTile, [:pointer, :Drawable, :uint, :uint, :pointer, :pointer], :int
291
+ attach_function :XQueryColor, [:pointer, :Colormap, :pointer], :int
292
+ attach_function :XQueryColors, [:pointer, :Colormap, :pointer, :int], :int
293
+ attach_function :XQueryExtension, [:pointer, :string, :pointer, :pointer, :pointer], :Bool
294
+ attach_function :XQueryKeymap, [:pointer, :pointer], :int
295
+ attach_function :XQueryPointer, [:pointer, :Window, :pointer, :pointer, :pointer, :pointer, :pointer, :pointer, :pointer], :Bool
296
+ attach_function :XQueryTextExtents, [:pointer, :XID, :string, :int, :pointer, :pointer, :pointer, :pointer], :int
297
+ attach_function :XQueryTextExtents16, [:pointer, :XID, :pointer, :int, :pointer, :pointer, :pointer, :pointer], :int
298
+ attach_function :XQueryTree, [:pointer, :Window, :pointer, :pointer, :pointer, :pointer], :Status
299
+ attach_function :XRaiseWindow, [:pointer, :Window], :int
300
+ attach_function :XReadBitmapFile, [:pointer, :Drawable, :string, :pointer, :pointer, :pointer, :pointer, :pointer], :int
301
+ attach_function :XReadBitmapFileData, [:string, :pointer, :pointer, :pointer, :pointer, :pointer], :int
302
+ attach_function :XRebindKeysym, [:pointer, :KeySym, :pointer, :int, :string, :int], :int
303
+ attach_function :XRecolorCursor, [:pointer, :Cursor, :pointer, :pointer], :int
304
+ attach_function :XRefreshKeyboardMapping, [:pointer], :int
305
+ attach_function :XRemoveFromSaveSet, [:pointer, :Window], :int
306
+ attach_function :XRemoveHost, [:pointer, :pointer], :int
307
+ attach_function :XRemoveHosts, [:pointer, :pointer, :int], :int
308
+ attach_function :XReparentWindow, [:pointer, :Window, :Window, :int, :int], :int
309
+ attach_function :XResetScreenSaver, [:pointer], :int
310
+ attach_function :XResizeWindow, [:pointer, :Window, :uint, :uint], :int
311
+ attach_function :XRestackWindows, [:pointer, :pointer, :int], :int
312
+ attach_function :XRotateBuffers, [:pointer, :int], :int
313
+ attach_function :XRotateWindowProperties, [:pointer, :Window, :pointer, :int, :int], :int
314
+ attach_function :XScreenCount, [:pointer], :int
315
+ attach_function :XSelectInput, [:pointer, :Window, :long], :int, :blocking => true
316
+ attach_function :XSendEvent, [:pointer, :Window, :Bool, :long, :pointer], :Status
317
+ attach_function :XSetAccessControl, [:pointer, :int], :int
318
+ attach_function :XSetArcMode, [:pointer, :GC, :int], :int
319
+ attach_function :XSetBackground, [:pointer, :GC, :ulong], :int
320
+ attach_function :XSetClipMask, [:pointer, :GC, :Pixmap], :int
321
+ attach_function :XSetClipOrigin, [:pointer, :GC, :int, :int], :int
322
+ attach_function :XSetClipRectangles, [:pointer, :GC, :int, :int, :pointer, :int, :int], :int
323
+ attach_function :XSetCloseDownMode, [:pointer, :int], :int
324
+ attach_function :XSetCommand, [:pointer, :Window, :pointer, :int], :int
325
+ attach_function :XSetDashes, [:pointer, :GC, :int, :pointer, :int], :int
326
+ attach_function :XSetFillRule, [:pointer, :GC, :int], :int
327
+ attach_function :XSetFillStyle, [:pointer, :GC, :int], :int
328
+ attach_function :XSetFont, [:pointer, :GC, :Font], :int
329
+ attach_function :XSetFontPath, [:pointer, :pointer, :int], :int
330
+ attach_function :XSetForeground, [:pointer, :GC, :ulong], :int
331
+ attach_function :XSetFunction, [:pointer, :GC, :int], :int
332
+ attach_function :XSetGraphicsExposures, [:pointer, :GC, :Bool], :int
333
+ attach_function :XSetIconName, [:pointer, :Window, :string], :int
334
+ attach_function :XSetInputFocus, [:pointer, :Window, :int, :Time], :int
335
+ attach_function :XSetLineAttributes, [:pointer, :GC, :uint, :int, :int, :int], :int
336
+ attach_function :XSetModifierMapping, [:pointer, :pointer], :int
337
+ attach_function :XSetPlaneMask, [:pointer, :GC, :ulong], :int
338
+ attach_function :XSetPointerMapping, [:pointer, :pointer, :int], :int
339
+ attach_function :XSetScreenSaver, [:pointer, :int, :int, :int, :int], :int
340
+ attach_function :XSetSelectionOwner, [:pointer, :Atom, :Window, :Time], :int
341
+ attach_function :XSetState, [:pointer, :GC, :ulong, :ulong, :int, :ulong], :int
342
+ attach_function :XSetStipple, [:pointer, :GC, :Pixmap], :int
343
+ attach_function :XSetSubwindowMode, [:pointer, :GC, :int], :int
344
+ attach_function :XSetTSOrigin, [:pointer, :GC, :int, :int], :int
345
+ attach_function :XSetTile, [:pointer, :GC, :Pixmap], :int
346
+ attach_function :XSetWindowBackground, [:pointer, :Window, :ulong], :int
347
+ attach_function :XSetWindowBackgroundPixmap, [:pointer, :Window, :Pixmap], :int
348
+ attach_function :XSetWindowBorder, [:pointer, :Window, :ulong], :int
349
+ attach_function :XSetWindowBorderPixmap, [:pointer, :Window, :Pixmap], :int
350
+ attach_function :XSetWindowBorderWidth, [:pointer, :Window, :uint], :int
351
+ attach_function :XSetWindowColormap, [:pointer, :Window, :Colormap], :int
352
+ attach_function :XStoreBuffer, [:pointer, :pointer, :int, :int], :int
353
+ attach_function :XStoreBytes, [:pointer, :pointer, :int], :int
354
+ attach_function :XStoreColor, [:pointer, :Colormap, :pointer], :int
355
+ attach_function :XStoreColors, [:pointer, :Colormap, :pointer, :int], :int
356
+ attach_function :XStoreName, [:pointer, :Window, :string], :int
357
+ attach_function :XStoreNamedColor, [:pointer, :Colormap, :string, :ulong, :int], :int
358
+ attach_function :XSync, [:pointer, :Bool], :int, :blocking => true
359
+ attach_function :XTextExtents, [:pointer, :string, :int, :pointer, :pointer, :pointer, :pointer], :int
360
+ attach_function :XTextExtents16, [:pointer, :pointer, :int, :pointer, :pointer, :pointer, :pointer], :int
361
+ attach_function :XTextWidth, [:pointer, :string, :int], :int
362
+ attach_function :XTextWidth16, [:pointer, :pointer, :int], :int
363
+ attach_function :XTranslateCoordinates, [:pointer, :Window, :Window, :int, :int, :pointer, :pointer, :pointer], :Bool
364
+ attach_function :XUndefineCursor, [:pointer, :Window], :int
365
+ attach_function :XUngrabButton, [:pointer, :uint, :uint, :Window], :int
366
+ attach_function :XUngrabKey, [:pointer, :int, :uint, :Window], :int
367
+ attach_function :XUngrabKeyboard, [:pointer, :Time], :int
368
+ attach_function :XUngrabPointer, [:pointer, :Time], :int
369
+ attach_function :XUngrabServer, [:pointer], :int
370
+ attach_function :XUninstallColormap, [:pointer, :Colormap], :int
371
+ attach_function :XUnloadFont, [:pointer, :Font], :int
372
+ attach_function :XUnmapSubwindows, [:pointer, :Window], :int
373
+ attach_function :XUnmapWindow, [:pointer, :Window], :int
374
+ attach_function :XVendorRelease, [:pointer], :int
375
+ attach_function :XWarpPointer, [:pointer, :Window, :Window, :int, :int, :uint, :uint, :int, :int], :int
376
+ attach_function :XWidthMMOfScreen, [:pointer], :int
377
+ attach_function :XWindowEvent, [:pointer, :Window, :long, :pointer], :int
378
+ attach_function :XWriteBitmapFile, [:pointer, :string, :Pixmap, :uint, :uint, :int, :int], :int
379
+
380
+ attach_function :XSupportsLocale, [], :Bool
381
+ attach_function :XSetLocaleModifiers, [:pointer], :int
382
+
383
+ # XXX: XOM and XOC, XIC, XIM, what the fuck.
384
+
385
+ attach_function :XFilterEvent, [:pointer, :Window], :Bool
386
+
387
+ attach_function :XInternalConnectionNumbers, [:pointer, :pointer, :pointer], :Status
388
+ attach_function :XProcessInternalConnection, [:pointer, :int], :void
389
+ attach_function :XAddConnectionWatch, [:pointer, :pointer, :pointer], :Status
390
+ attach_function :XRemoveConnectionWatch, [:pointer, :pointer, :pointer], :void
391
+ attach_function :XSetAuthorization, [:string, :int, :pointer, :int], :void
392
+
393
+ attach_function :XGetEventData, [:pointer, :pointer], :Bool
394
+ attach_function :XFreeEventData, [:pointer, :pointer], :void
395
+
396
+ end