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,21 @@
1
+ #
2
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
3
+ #
4
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
5
+ # the LICENSE file found in the top-level directory of this distribution and at
6
+ # http://github.com/christopheraue/ruby-xlib.
7
+ #
8
+
9
+ class Xlib::XRRProviderPropertyNotifyEvent < FFI::Struct
10
+ layout \
11
+ :type, :int,
12
+ :serial, :ulong,
13
+ :send_event, :Bool,
14
+ :display, :pointer,
15
+ :window, :Window,
16
+ :subtype, :int,
17
+ :provider, :RRProvider,
18
+ :property, :Atom,
19
+ :timestamp, :Time,
20
+ :state, :int
21
+ end
@@ -0,0 +1,14 @@
1
+ #
2
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
3
+ #
4
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
5
+ # the LICENSE file found in the top-level directory of this distribution and at
6
+ # http://github.com/christopheraue/ruby-xlib.
7
+ #
8
+
9
+ class Xlib::XRRProviderResources < FFI::Struct
10
+ layout \
11
+ :timestamp, :Time,
12
+ :nproviders, :int,
13
+ :providers, :pointer
14
+ end
@@ -0,0 +1,18 @@
1
+ #
2
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
3
+ #
4
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
5
+ # the LICENSE file found in the top-level directory of this distribution and at
6
+ # http://github.com/christopheraue/ruby-xlib.
7
+ #
8
+
9
+ class Xlib::XRRResourceChangeNotifyEvent < FFI::Struct
10
+ layout \
11
+ :type, :int,
12
+ :serial, :ulong,
13
+ :send_event, :Bool,
14
+ :display, :pointer,
15
+ :window, :Window,
16
+ :subtype, :int,
17
+ :timestamp, :Time
18
+ end
@@ -0,0 +1,26 @@
1
+ #
2
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
3
+ #
4
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
5
+ # the LICENSE file found in the top-level directory of this distribution and at
6
+ # http://github.com/christopheraue/ruby-xlib.
7
+ #
8
+
9
+ class Xlib::XRRScreenChangeNotifyEvent < FFI::Struct
10
+ layout \
11
+ :type, :int,
12
+ :serial, :ulong,
13
+ :send_event, :Bool,
14
+ :display, :pointer,
15
+ :window, :Window,
16
+ :root, :Window,
17
+ :timestamp, :Time,
18
+ :config_timestamp, :Time,
19
+ :size_index, :SizeID,
20
+ :subpixel_order, :SubpixelOrder,
21
+ :rotation, :Rotation,
22
+ :width, :int,
23
+ :height, :int,
24
+ :mwidth, :int,
25
+ :mheight, :int
26
+ 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::XRRScreenResources < FFI::Struct
11
+ layout \
12
+ :timestamp, :Time,
13
+ :configTimestamp, :Time,
14
+ :ncrtc, :int,
15
+ :crtcs, :pointer,
16
+ :noutput, :int,
17
+ :outputs, :pointer,
18
+ :nmode, :int,
19
+ :modes, :pointer
20
+ 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::XRRScreenSize < FFI::Struct
11
+ layout \
12
+ :width, :int,
13
+ :height, :int,
14
+ :mwidth, :int,
15
+ :mheight, :int
16
+ end
@@ -0,0 +1,36 @@
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 :XID, :RROutput
12
+ typedef :XID, :RRCrtc
13
+ typedef :XID, :RRMode
14
+ typedef :XID, :RRProvider
15
+ typedef :ulong, :XRRModeFlags
16
+ end
17
+
18
+ require_relative 'struct/crtc_change_notify_event'
19
+ require_relative 'struct/crtc_gamma'
20
+ require_relative 'struct/crtc_info'
21
+ require_relative 'struct/crtc_transform_attributes'
22
+ require_relative 'struct/mode_info'
23
+ require_relative 'struct/notify_event'
24
+ require_relative 'struct/output_change_notify_event'
25
+ require_relative 'struct/output_info'
26
+ require_relative 'struct/output_property_notify_event'
27
+ require_relative 'struct/panning'
28
+ require_relative 'struct/property_info'
29
+ require_relative 'struct/provider_change_notify_event'
30
+ require_relative 'struct/provider_info'
31
+ require_relative 'struct/provider_property_notify_event'
32
+ require_relative 'struct/provider_resources'
33
+ require_relative 'struct/resource_change_notify_event'
34
+ require_relative 'struct/screen_change_notify_event'
35
+ require_relative 'struct/screen_resources'
36
+ require_relative 'struct/screen_size'
@@ -0,0 +1,24 @@
1
+ #
2
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
3
+ #
4
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
5
+ # the LICENSE file found in the top-level directory of this distribution and at
6
+ # http://github.com/christopheraue/ruby-xlib.
7
+ #
8
+
9
+ require 'xlib'
10
+
11
+ module Xlib
12
+ begin
13
+ ffi_lib 'Xrender'
14
+ def self.xrender_available?; true end
15
+ rescue LoadError => e
16
+ def self.xrender_available?; false end
17
+ end
18
+ end
19
+
20
+ require_relative 'xrender/types'
21
+
22
+ if Xlib.xrender_available?
23
+ require_relative 'xrender/functions'
24
+ end
@@ -0,0 +1,28 @@
1
+ #
2
+ # Copyright (c) 2014, Christopher Aue <mail@christopheraue.net>
3
+ #
4
+ # This file is part of the ruby xlib gem. It is subject to the license terms in
5
+ # the LICENSE file found in the top-level directory of this distribution and at
6
+ # http://github.com/christopheraue/ruby-xlib.
7
+ #
8
+
9
+ module Xlib
10
+ PictFormatID = (1 << 0)
11
+ PictFormatType = (1 << 1)
12
+ PictFormatDepth = (1 << 2)
13
+ PictFormatRed = (1 << 3)
14
+ PictFormatRedMask = (1 << 4)
15
+ PictFormatGreen = (1 << 5)
16
+ PictFormatGreenMask = (1 << 6)
17
+ PictFormatBlue = (1 << 7)
18
+ PictFormatBlueMask = (1 << 8)
19
+ PictFormatAlpha = (1 << 9)
20
+ PictFormatAlphaMask = (1 << 10)
21
+ PictFormatColormap = (1 << 11)
22
+ PictStandardARGB32 = 0
23
+ PictStandardRGB24 = 1
24
+ PictStandardA8 = 2
25
+ PictStandardA4 = 3
26
+ PictStandardA1 = 4
27
+ PictStandardNUM = 5
28
+ end
@@ -0,0 +1,29 @@
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 :XRenderQueryExtension, [:pointer, :pointer, :pointer], :Bool
13
+ attach_function :XRenderQueryVersion, [:pointer, :pointer, :pointer], :Status
14
+ attach_function :XRenderQueryFormats, [:pointer], :Status
15
+ attach_function :XRenderQuerySubpixelOrder, [:pointer, :int], :int
16
+ attach_function :XRenderQueryPictIndexValues, [:pointer, :pointer, :pointer], :pointer
17
+
18
+ attach_function :XRenderSetSubpixelOrder, [:pointer, :int, :int], :Bool
19
+
20
+ attach_function :XRenderFindVisualFormat, [:pointer, :pointer], :pointer
21
+ attach_function :XRenderFindFormat, [:pointer, :ulong, :pointer, :int], :pointer
22
+ attach_function :XRenderFindStandardFormat, [:pointer, :int], :pointer
23
+
24
+ attach_function :XRenderCreatePicture, [:pointer, :Drawable, :pointer, :ulong, :pointer], :Picture
25
+ attach_function :XRenderChangePicture, [:pointer, :Picture, :ulong, :pointer], :void
26
+ attach_function :XRenderSetPictureClipRectangles, [:pointer, :Picture, :int, :int, :pointer, :int], :void
27
+ attach_function :XRenderSetPictureClipRegion, [:pointer, :Picture, :pointer], :void
28
+
29
+ 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::XAnimCursor < FFI::Struct
11
+ layout \
12
+ :cursor, :Cursor,
13
+ :delay, :ulong
14
+ 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::XCircle < FFI::Struct
11
+ layout \
12
+ :x, :XFixed,
13
+ :y, :XFixed,
14
+ :radius, :XFixed
15
+ 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::XConicalGradient < FFI::Struct
11
+ layout \
12
+ :center, Xlib::XPointFixed,
13
+ :angle, :XFixed
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::XFilters < FFI::Struct
11
+ layout \
12
+ :nfilter, :int,
13
+ :filter, :pointer,
14
+ :nalias, :int,
15
+ :alias, :pointer
16
+ 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::XGlyphElt16 < FFI::Struct
11
+ layout \
12
+ :glyphset, :GlyphSet,
13
+ :chars, :pointer,
14
+ :nchars, :int,
15
+ :xOff, :int,
16
+ :yOff, :int
17
+ 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::XGlyphElt32 < FFI::Struct
11
+ layout \
12
+ :glyphset, :GlyphSet,
13
+ :chars, :pointer,
14
+ :nchars, :int,
15
+ :xOff, :int,
16
+ :yOff, :int
17
+ 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::XGlyphElt8 < FFI::Struct
11
+ layout \
12
+ :glyphset, :GlyphSet,
13
+ :chars, :pointer,
14
+ :nchars, :int,
15
+ :xOff, :int,
16
+ :yOff, :int
17
+ end
@@ -0,0 +1,18 @@
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::XGlyphInfo < FFI::Struct
11
+ layout \
12
+ :width, :ushort,
13
+ :height, :ushort,
14
+ :x, :short,
15
+ :y, :short,
16
+ :xOff, :int,
17
+ :yOff, :int
18
+ 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::XIndexValue < FFI::Struct
11
+ layout \
12
+ :pixel, :ulong,
13
+ :red, :ushort,
14
+ :green, :ushort,
15
+ :blue, :ushort,
16
+ :alpha, :ushort
17
+ 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::XLineFixed < FFI::Struct
11
+ layout \
12
+ :p1, Xlib::XPointFixed,
13
+ :p2, Xlib::XPointFixed
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::XLinearGradient < FFI::Struct
11
+ layout \
12
+ :p1, Xlib::XPointFixed,
13
+ :p2, Xlib::XPointFixed
14
+ end