x11 0.0.1a2 → 0.0.1a3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/X11/X.rb +14 -9
- data/lib/X11/X/c.rb +21 -20
- data/lib/X11/XKBlib.rb +29 -0
- data/lib/X11/Xatom.rb +152 -136
- data/lib/X11/Xatom/c.rb +15 -15
- data/lib/X11/Xdefs.rb +7 -7
- data/lib/X11/Xdefs/c.rb +20 -20
- data/lib/X11/Xlib.rb +19 -7
- data/lib/X11/Xlib/c.rb +21 -8
- data/lib/X11/Xlib/c/functions.rb +373 -27
- data/lib/X11/Xlib/c/type/any_event.rb +13 -13
- data/lib/X11/Xlib/c/type/button_event.rb +23 -23
- data/lib/X11/Xlib/c/type/circulate_event.rb +15 -15
- data/lib/X11/Xlib/c/type/circulate_request_event.rb +15 -15
- data/lib/X11/Xlib/c/type/client_message_event.rb +22 -22
- data/lib/X11/Xlib/c/type/colormap_event.rb +16 -16
- data/lib/X11/Xlib/c/type/configure_event.rb +21 -21
- data/lib/X11/Xlib/c/type/configure_request_event.rb +22 -22
- data/lib/X11/Xlib/c/type/create_window_event.rb +20 -20
- data/lib/X11/Xlib/c/type/crossing_event.rb +25 -25
- data/lib/X11/Xlib/c/type/destroy_window_event.rb +14 -14
- data/lib/X11/Xlib/c/type/display.rb +52 -52
- data/lib/X11/Xlib/c/type/error_event.rb +15 -15
- data/lib/X11/Xlib/c/type/event.rb +43 -43
- data/lib/X11/Xlib/c/type/expose_event.rb +18 -18
- data/lib/X11/Xlib/c/type/focus_change_event.rb +15 -15
- data/lib/X11/Xlib/c/type/gc.rb +10 -10
- data/lib/X11/Xlib/c/type/gc_values.rb +54 -0
- data/lib/X11/Xlib/c/type/generic_event.rb +14 -14
- data/lib/X11/Xlib/c/type/generic_event_cookie.rb +16 -16
- data/lib/X11/Xlib/c/type/graphics_expose_event.rb +21 -21
- data/lib/X11/Xlib/c/type/gravity_event.rb +16 -16
- data/lib/X11/Xlib/c/type/image.rb +56 -0
- data/lib/X11/Xlib/c/type/key_event.rb +23 -23
- data/lib/X11/Xlib/c/type/key_sym.rb +15 -15
- data/lib/X11/Xlib/c/type/keymap_event.rb +14 -14
- data/lib/X11/Xlib/c/type/map_event.rb +15 -15
- data/lib/X11/Xlib/c/type/map_request_event.rb +18 -18
- data/lib/X11/Xlib/c/type/mapping_event.rb +16 -16
- data/lib/X11/Xlib/c/type/motion_event.rb +23 -23
- data/lib/X11/Xlib/c/type/no_expose_event.rb +15 -15
- data/lib/X11/Xlib/c/type/point.rb +33 -0
- data/lib/X11/Xlib/c/type/property_event.rb +16 -16
- data/lib/X11/Xlib/c/type/reparent_event.rb +18 -18
- data/lib/X11/Xlib/c/type/resize_request_event.rb +15 -15
- data/lib/X11/Xlib/c/type/screen.rb +27 -27
- data/lib/X11/Xlib/c/type/selection_clear_event.rb +15 -15
- data/lib/X11/Xlib/c/type/selection_event.rb +17 -17
- data/lib/X11/Xlib/c/type/selection_request_event.rb +18 -18
- data/lib/X11/Xlib/c/type/status.rb +15 -15
- data/lib/X11/Xlib/c/type/unmap_event.rb +15 -15
- data/lib/X11/Xlib/c/type/visibility_event.rb +14 -14
- data/lib/X11/Xlib/c/type/visual.rb +16 -16
- data/lib/X11/Xlib/c/type/window_attributes.rb +31 -31
- data/lib/X11/Xlib/c/types.rb +9 -7
- data/lib/X11/Xlib/display.rb +257 -174
- data/lib/X11/Xlib/display/extensions.rb +56 -0
- data/lib/X11/Xlib/drawable.rb +48 -0
- data/lib/X11/Xlib/error.rb +100 -0
- data/lib/X11/Xlib/event.rb +66 -37
- data/lib/X11/Xlib/event/any.rb +8 -10
- data/lib/X11/Xlib/event/button_press.rb +9 -20
- data/lib/X11/Xlib/event/button_release.rb +9 -20
- data/lib/X11/Xlib/event/circulate_notify.rb +11 -12
- data/lib/X11/Xlib/event/circulate_request.rb +11 -12
- data/lib/X11/Xlib/event/client_message.rb +11 -13
- data/lib/X11/Xlib/event/colormap_notify.rb +12 -13
- data/lib/X11/Xlib/event/configure_notify.rb +17 -18
- data/lib/X11/Xlib/event/configure_request.rb +18 -19
- data/lib/X11/Xlib/event/create_notify.rb +16 -17
- data/lib/X11/Xlib/event/destroy_notify.rb +10 -11
- data/lib/X11/Xlib/event/enter_notify.rb +10 -8
- data/lib/X11/Xlib/event/expose.rb +15 -16
- data/lib/X11/Xlib/event/focus_in.rb +9 -12
- data/lib/X11/Xlib/event/focus_out.rb +9 -12
- data/lib/X11/Xlib/event/generic.rb +35 -0
- data/lib/X11/Xlib/event/generic/button.rb +46 -0
- data/lib/X11/Xlib/event/generic/crossing.rb +48 -0
- data/lib/X11/Xlib/{window/properties/property/class.rb → event/generic/focus_change.rb} +16 -14
- data/lib/X11/Xlib/event/generic/key.rb +46 -0
- data/lib/X11/Xlib/event/generic/motion.rb +46 -0
- data/lib/X11/Xlib/event/generic_event.rb +12 -14
- data/lib/X11/Xlib/event/graphics_expose.rb +15 -14
- data/lib/X11/Xlib/event/gravity_notify.rb +12 -13
- data/lib/X11/Xlib/event/helper.rb +123 -91
- data/lib/X11/Xlib/event/key_press.rb +9 -20
- data/lib/X11/Xlib/event/key_release.rb +9 -20
- data/lib/X11/Xlib/event/keymap_notify.rb +13 -14
- data/lib/X11/Xlib/event/leave_notify.rb +10 -20
- data/lib/X11/Xlib/event/map_notify.rb +11 -12
- data/lib/X11/Xlib/event/map_request.rb +10 -11
- data/lib/X11/Xlib/event/mapping_notify.rb +11 -13
- data/lib/X11/Xlib/event/motion_notify.rb +10 -20
- data/lib/X11/Xlib/event/no_expose.rb +8 -9
- data/lib/X11/Xlib/event/property_notify.rb +12 -13
- data/lib/X11/Xlib/event/reparent_notify.rb +14 -15
- data/lib/X11/Xlib/event/resize_request.rb +11 -12
- data/lib/X11/Xlib/event/selection_clear.rb +10 -12
- data/lib/X11/Xlib/event/selection_notify.rb +13 -15
- data/lib/X11/Xlib/event/selection_request.rb +14 -16
- data/lib/X11/Xlib/event/unmap_notify.rb +11 -12
- data/lib/X11/Xlib/event/visibility_notify.rb +10 -11
- data/lib/X11/Xlib/events.rb +11 -7
- data/lib/X11/Xlib/exceptions.rb +10 -10
- data/lib/X11/Xlib/graphic_context.rb +69 -0
- data/lib/X11/Xlib/graphic_context/functions.rb +50 -0
- data/lib/X11/Xlib/{window/properties/property/command.rb → graphic_context/values.rb} +17 -13
- data/lib/X11/Xlib/hints.rb +19 -18
- data/lib/X11/Xlib/hints/flags.rb +15 -15
- data/lib/X11/Xlib/hints/icon.rb +14 -16
- data/lib/X11/Xlib/id.rb +75 -0
- data/lib/X11/Xlib/image.rb +64 -0
- data/lib/X11/Xlib/keysym.rb +53 -26
- data/lib/X11/Xlib/mask.rb +81 -55
- data/lib/X11/Xlib/pixmap.rb +60 -0
- data/lib/X11/Xlib/planes.rb +50 -0
- data/lib/X11/Xlib/revert_to.rb +10 -10
- data/lib/X11/Xlib/screen.rb +48 -31
- data/lib/X11/Xlib/status.rb +56 -56
- data/lib/X11/Xlib/transform.rb +25 -25
- data/lib/X11/Xlib/visual.rb +19 -19
- data/lib/X11/Xlib/window.rb +399 -188
- data/lib/X11/Xlib/window/attributes.rb +74 -41
- data/lib/X11/Xlib/window/properties.rb +57 -38
- data/lib/X11/Xlib/window/properties/property.rb +135 -70
- data/lib/X11/Xlib/window/properties/property/net_virtual_root.rb +13 -13
- data/lib/X11/Xlib/window/properties/property/parser.rb +45 -35
- data/lib/X11/Xlib/window/properties/property/parser/arc.rb +18 -16
- data/lib/X11/Xlib/window/properties/property/parser/atom.rb +14 -10
- data/lib/X11/Xlib/window/properties/property/parser/cardinal.rb +14 -9
- data/lib/X11/Xlib/window/properties/property/parser/hints.rb +17 -16
- data/lib/X11/Xlib/window/properties/property/parser/integer.rb +39 -0
- data/lib/X11/Xlib/window/properties/property/parser/state.rb +39 -0
- data/lib/X11/Xlib/window/properties/property/parser/string.rb +59 -0
- data/lib/X11/Xlib/window/properties/property/parser/window.rb +39 -0
- data/lib/X11/Xmd.rb +7 -7
- data/lib/X11/Xmd/c.rb +19 -19
- data/lib/X11/Xregion.rb +32 -0
- data/lib/X11/Xregion/c.rb +29 -0
- data/lib/X11/Xregion/c/type/box.rb +35 -0
- data/lib/X11/Xregion/c/type/point_block.rb +33 -0
- data/lib/X11/Xregion/c/type/rectangle.rb +35 -0
- data/lib/X11/Xregion/c/type/region.rb +35 -0
- data/lib/X11/Xregion/c/types.rb +32 -0
- data/lib/X11/Xutil.rb +12 -17
- data/lib/X11/Xutil/c.rb +7 -10
- data/lib/X11/Xutil/c/functions.rb +7 -7
- data/lib/X11/Xutil/c/type/class_hint.rb +10 -10
- data/lib/X11/Xutil/c/type/region.rb +31 -0
- data/lib/X11/Xutil/c/type/text_property.rb +12 -12
- data/lib/X11/Xutil/c/types.rb +8 -7
- data/lib/X11/Xutil/state.rb +43 -0
- data/lib/X11/Xutil/window.rb +28 -28
- data/lib/X11/cursorfont.rb +7 -7
- data/lib/X11/cursorfont/c.rb +8 -8
- data/lib/X11/cursorfont/font.rb +113 -113
- data/lib/X11/extension.rb +65 -0
- data/lib/X11/extensions.rb +105 -126
- data/lib/X11/extensions/Xrandr.rb +49 -0
- data/lib/X11/extensions/Xrandr/c.rb +30 -0
- data/lib/X11/extensions/Xrandr/c/functions.rb +106 -0
- data/lib/X11/extensions/Xrandr/c/type/crtc_gamma.rb +35 -0
- data/lib/X11/extensions/Xrandr/c/type/crtc_info.rb +43 -0
- data/lib/X11/extensions/Xrandr/c/type/crtc_transform_attributes.rb +39 -0
- data/lib/X11/extensions/Xrandr/c/type/mode_info.rb +45 -0
- data/lib/X11/extensions/Xrandr/c/type/output_info.rb +46 -0
- data/lib/X11/extensions/Xrandr/c/type/panning.rb +44 -0
- data/lib/X11/extensions/Xrandr/c/type/property_info.rb +36 -0
- data/lib/X11/extensions/Xrandr/c/type/screen_resources.rb +39 -0
- data/lib/X11/extensions/Xrandr/c/type/screen_size.rb +35 -0
- data/lib/X11/extensions/Xrandr/c/types.rb +48 -0
- data/lib/X11/extensions/Xrandr/crtc.rb +70 -0
- data/lib/X11/extensions/Xrandr/crtc/gamma.rb +100 -0
- data/lib/X11/extensions/Xrandr/crtc/info.rb +62 -0
- data/lib/X11/extensions/Xrandr/crtc/panning.rb +74 -0
- data/lib/X11/extensions/Xrandr/event.rb +29 -0
- data/lib/X11/extensions/Xrandr/output.rb +59 -0
- data/lib/X11/extensions/Xrandr/output/info.rb +105 -0
- data/lib/X11/extensions/Xrandr/output/properties.rb +78 -0
- data/lib/X11/extensions/Xrandr/output/properties/property.rb +161 -0
- data/lib/X11/extensions/Xrandr/output/properties/property/info.rb +73 -0
- data/lib/X11/extensions/Xrandr/output/properties/property/parser.rb +73 -0
- data/lib/X11/extensions/Xrandr/output/properties/property/parser/atom.rb +39 -0
- data/lib/X11/extensions/Xrandr/output/properties/property/parser/integer.rb +43 -0
- data/lib/X11/extensions/Xrandr/screen.rb +49 -0
- data/lib/X11/extensions/Xrandr/screen/backlight.rb +76 -0
- data/lib/X11/extensions/Xrandr/screen_resources.rb +81 -0
- data/lib/X11/extensions/Xrandr/window.rb +41 -0
- data/lib/X11/extensions/Xrender.rb +34 -0
- data/lib/X11/extensions/Xrender/c.rb +30 -0
- data/lib/X11/extensions/Xrender/c/functions.rb +50 -0
- data/lib/X11/extensions/Xrender/c/type/anim_cursor.rb +33 -0
- data/lib/X11/extensions/Xrender/c/type/circle.rb +34 -0
- data/lib/X11/extensions/Xrender/c/type/conical_gradient.rb +33 -0
- data/lib/X11/extensions/Xrender/c/type/filters.rb +35 -0
- data/lib/X11/extensions/Xrender/c/type/glyph_elt16.rb +36 -0
- data/lib/X11/extensions/Xrender/c/type/glyph_elt32.rb +36 -0
- data/lib/X11/extensions/Xrender/c/type/glyph_elt8.rb +36 -0
- data/lib/X11/extensions/Xrender/c/type/glyph_info.rb +37 -0
- data/lib/X11/extensions/Xrender/c/type/index_value.rb +36 -0
- data/lib/X11/extensions/Xrender/c/type/line_fixed.rb +33 -0
- data/lib/X11/extensions/Xrender/c/type/linear_gradient.rb +33 -0
- data/lib/X11/extensions/Xrender/c/type/point_double.rb +33 -0
- data/lib/X11/extensions/Xrender/c/type/point_fixed.rb +33 -0
- data/lib/X11/extensions/Xrender/c/type/radial_gradient.rb +33 -0
- data/lib/X11/extensions/Xrender/c/type/render_color.rb +35 -0
- data/lib/X11/extensions/Xrender/c/type/render_direct_format.rb +39 -0
- data/lib/X11/extensions/Xrender/c/type/render_pict_format.rb +36 -0
- data/lib/X11/extensions/Xrender/c/type/render_picture_attributes.rb +44 -0
- data/lib/X11/extensions/Xrender/c/type/span_fix.rb +34 -0
- data/lib/X11/extensions/Xrender/c/type/transform.rb +32 -0
- data/lib/X11/extensions/Xrender/c/type/trap.rb +33 -0
- data/lib/X11/extensions/Xrender/c/type/trapezoid.rb +35 -0
- data/lib/X11/extensions/Xrender/c/type/triangle.rb +34 -0
- data/lib/X11/extensions/Xrender/c/types.rb +56 -0
- data/lib/X11/extensions/Xrender/mask.rb +48 -0
- data/lib/X11/extensions/randr.rb +29 -0
- data/lib/X11/extensions/randr/c.rb +38 -0
- data/lib/X11/extensions/render.rb +29 -0
- data/lib/X11/extensions/render/c.rb +34 -0
- data/lib/X11/extensions/xf86vmode.rb +42 -0
- data/lib/X11/extensions/xf86vmode/c.rb +30 -0
- data/lib/X11/extensions/xf86vmode/c/functions.rb +59 -0
- data/lib/X11/extensions/xf86vmode/c/type/gamma.rb +34 -0
- data/lib/X11/extensions/xf86vmode/c/type/mode_info.rb +44 -0
- data/lib/X11/extensions/xf86vmode/c/type/mode_line.rb +43 -0
- data/lib/X11/extensions/xf86vmode/c/type/monitor.rb +38 -0
- data/lib/X11/extensions/xf86vmode/c/type/sync_range.rb +33 -0
- data/lib/X11/extensions/xf86vmode/c/types.rb +36 -0
- data/lib/X11/extensions/xf86vmode/screen.rb +53 -0
- data/lib/X11/extensions/xf86vmode/screen/gamma.rb +79 -0
- data/lib/X11/extensions/xf86vmode/screen/gamma/ramp.rb +86 -0
- data/lib/X11/keysym.rb +7 -25
- data/lib/X11/misc/temperature.rb +458 -0
- data/lib/X11/simple.rb +8 -7
- data/lib/X11/simple/display.rb +35 -37
- data/lib/X11/simple/window.rb +39 -19
- data/lib/X11/window_manager.rb +32 -0
- data/lib/X11/window_manager/desktops.rb +82 -0
- data/lib/X11/window_manager/desktops/desktop.rb +78 -0
- data/lib/X11/window_manager/supports.rb +56 -0
- data/lib/X11/window_manager/supports/feature.rb +46 -0
- data/lib/X11/window_manager/window.rb +102 -0
- data/lib/X11/window_manager/window_manager.rb +73 -0
- metadata +216 -66
@@ -0,0 +1,33 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XPointDouble < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:x, :XDouble,
|
32
|
+
:y, :XDouble
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XPointFixed < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:x, :XFixed,
|
32
|
+
:y, :XFixed
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XRadialGradient < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:inner, X11::C::XCircle,
|
32
|
+
:outer, X11::C::XCircle
|
33
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XRenderColor < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:red, :ushort,
|
32
|
+
:green, :ushort,
|
33
|
+
:blue, :ushort,
|
34
|
+
:alpha, :ushort
|
35
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XRenderDirectFormat < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:red, :short,
|
32
|
+
:redMask, :short,
|
33
|
+
:green, :short,
|
34
|
+
:greenMask, :short,
|
35
|
+
:blue, :short,
|
36
|
+
:blueMask, :short,
|
37
|
+
:alpha, :short,
|
38
|
+
:alphaMask, :short
|
39
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XRenderPictFormat < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:id, :PictFormat,
|
32
|
+
:type, :int,
|
33
|
+
:depth, :int,
|
34
|
+
:direct, X11::C::XRenderDirectFormat,
|
35
|
+
:colormap, :Colormap
|
36
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XRenderPictureAttributes < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:repeat, :int,
|
32
|
+
:alpha_map, :Picture,
|
33
|
+
:alpha_x_origin, :int,
|
34
|
+
:alpha_y_origin, :int,
|
35
|
+
:clip_x_origin, :int,
|
36
|
+
:clip_y_origin, :int,
|
37
|
+
:clip_mask, :Pixmap,
|
38
|
+
:graphics_exposures, :Bool,
|
39
|
+
:subwindow_mode, :int,
|
40
|
+
:poly_edge, :int,
|
41
|
+
:poly_mode, :int,
|
42
|
+
:dither, :Atom,
|
43
|
+
:component_alpha, :Bool
|
44
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XSpanFix < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:left, :XFixed,
|
32
|
+
:right, :XFixed,
|
33
|
+
:y, :XFixed
|
34
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XTransform < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:matrix, [[:XFixed, 3], 3]
|
32
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XSpanFix < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:top, X11::C::XSpanFix,
|
32
|
+
:bottom, X11::C::XSpanFix
|
33
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XTrapezoid < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:top, :XFixed,
|
32
|
+
:bottom, :XFixed,
|
33
|
+
:left, X11::C::XLineFixed,
|
34
|
+
:right, X11::C::XLineFixed
|
35
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
class X11::C::XTriangle < FFI::Struct
|
30
|
+
layout \
|
31
|
+
:p1, X11::C::XPointFixed,
|
32
|
+
:p2, X11::C::XPointFixed,
|
33
|
+
:p3, X11::C::XPointFixed
|
34
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
#--
|
2
|
+
# Copyleft meh. [http://meh.paranoid.pk | meh@paranoici.org]
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without modification, are
|
5
|
+
# permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice, this list of
|
8
|
+
# conditions and the following disclaimer.
|
9
|
+
#
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
11
|
+
# of conditions and the following disclaimer in the documentation and/or other materials
|
12
|
+
# provided with the distribution.
|
13
|
+
#
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY meh ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL meh OR
|
17
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
19
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20
|
+
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
21
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
22
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23
|
+
#
|
24
|
+
# The views and conclusions contained in the software and documentation are those of the
|
25
|
+
# authors and should not be interpreted as representing official policies, either expressed
|
26
|
+
# or implied.
|
27
|
+
#++
|
28
|
+
|
29
|
+
module FFI
|
30
|
+
typedef :int, :XFixed
|
31
|
+
typedef :double, :XDouble
|
32
|
+
end
|
33
|
+
|
34
|
+
require 'X11/extensions/Xrender/c/type/render_direct_format'
|
35
|
+
require 'X11/extensions/Xrender/c/type/render_pict_format'
|
36
|
+
require 'X11/extensions/Xrender/c/type/render_picture_attributes'
|
37
|
+
require 'X11/extensions/Xrender/c/type/render_color'
|
38
|
+
require 'X11/extensions/Xrender/c/type/glyph_info'
|
39
|
+
require 'X11/extensions/Xrender/c/type/glyph_elt8'
|
40
|
+
require 'X11/extensions/Xrender/c/type/glyph_elt16'
|
41
|
+
require 'X11/extensions/Xrender/c/type/glyph_elt32'
|
42
|
+
require 'X11/extensions/Xrender/c/type/point_double'
|
43
|
+
require 'X11/extensions/Xrender/c/type/point_fixed'
|
44
|
+
require 'X11/extensions/Xrender/c/type/line_fixed'
|
45
|
+
require 'X11/extensions/Xrender/c/type/triangle'
|
46
|
+
require 'X11/extensions/Xrender/c/type/circle'
|
47
|
+
require 'X11/extensions/Xrender/c/type/trapezoid'
|
48
|
+
require 'X11/extensions/Xrender/c/type/transform'
|
49
|
+
require 'X11/extensions/Xrender/c/type/filters'
|
50
|
+
require 'X11/extensions/Xrender/c/type/index_value'
|
51
|
+
require 'X11/extensions/Xrender/c/type/anim_cursor'
|
52
|
+
require 'X11/extensions/Xrender/c/type/span_fix'
|
53
|
+
require 'X11/extensions/Xrender/c/type/trap'
|
54
|
+
require 'X11/extensions/Xrender/c/type/linear_gradient'
|
55
|
+
require 'X11/extensions/Xrender/c/type/radial_gradient'
|
56
|
+
require 'X11/extensions/Xrender/c/type/conical_gradient'
|