xlib 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/x.rb +11 -0
- data/lib/x/constants.rb +614 -0
- data/lib/x/extensions.rb +10 -0
- data/lib/x/extensions/randr.rb +10 -0
- data/lib/x/extensions/randr/constants.rb +160 -0
- data/lib/x/extensions/randr/types.rb +18 -0
- data/lib/x/extensions/render.rb +10 -0
- data/lib/x/extensions/render/constants.rb +155 -0
- data/lib/x/extensions/render/types.rb +15 -0
- data/lib/x/types.rb +24 -0
- data/lib/xlib.rb +29 -0
- data/lib/xlib/constants.rb +119 -0
- data/lib/xlib/extensions.rb +10 -0
- data/lib/xlib/extensions/xrandr.rb +25 -0
- data/lib/xlib/extensions/xrandr/functions.rb +101 -0
- data/lib/xlib/extensions/xrandr/struct/crtc_change_notify_event.rb +24 -0
- data/lib/xlib/extensions/xrandr/struct/crtc_gamma.rb +16 -0
- data/lib/xlib/extensions/xrandr/struct/crtc_info.rb +24 -0
- data/lib/xlib/extensions/xrandr/struct/crtc_transform_attributes.rb +20 -0
- data/lib/xlib/extensions/xrandr/struct/mode_info.rb +26 -0
- data/lib/xlib/extensions/xrandr/struct/notify_event.rb +17 -0
- data/lib/xlib/extensions/xrandr/struct/output_change_notify_event.rb +24 -0
- data/lib/xlib/extensions/xrandr/struct/output_info.rb +27 -0
- data/lib/xlib/extensions/xrandr/struct/output_property_notify_event.rb +21 -0
- data/lib/xlib/extensions/xrandr/struct/panning.rb +25 -0
- data/lib/xlib/extensions/xrandr/struct/property_info.rb +17 -0
- data/lib/xlib/extensions/xrandr/struct/provider_change_notify_event.rb +20 -0
- data/lib/xlib/extensions/xrandr/struct/provider_info.rb +21 -0
- data/lib/xlib/extensions/xrandr/struct/provider_property_notify_event.rb +21 -0
- data/lib/xlib/extensions/xrandr/struct/provider_resources.rb +14 -0
- data/lib/xlib/extensions/xrandr/struct/resource_change_notify_event.rb +18 -0
- data/lib/xlib/extensions/xrandr/struct/screen_change_notify_event.rb +26 -0
- data/lib/xlib/extensions/xrandr/struct/screen_resources.rb +20 -0
- data/lib/xlib/extensions/xrandr/struct/screen_size.rb +16 -0
- data/lib/xlib/extensions/xrandr/types.rb +36 -0
- data/lib/xlib/extensions/xrender.rb +24 -0
- data/lib/xlib/extensions/xrender/constants.rb +28 -0
- data/lib/xlib/extensions/xrender/functions.rb +29 -0
- data/lib/xlib/extensions/xrender/struct/anim_cursor.rb +14 -0
- data/lib/xlib/extensions/xrender/struct/circle.rb +15 -0
- data/lib/xlib/extensions/xrender/struct/conical_gradient.rb +14 -0
- data/lib/xlib/extensions/xrender/struct/filters.rb +16 -0
- data/lib/xlib/extensions/xrender/struct/glyph_elt16.rb +17 -0
- data/lib/xlib/extensions/xrender/struct/glyph_elt32.rb +17 -0
- data/lib/xlib/extensions/xrender/struct/glyph_elt8.rb +17 -0
- data/lib/xlib/extensions/xrender/struct/glyph_info.rb +18 -0
- data/lib/xlib/extensions/xrender/struct/index_value.rb +17 -0
- data/lib/xlib/extensions/xrender/struct/line_fixed.rb +14 -0
- data/lib/xlib/extensions/xrender/struct/linear_gradient.rb +14 -0
- data/lib/xlib/extensions/xrender/struct/point_double.rb +14 -0
- data/lib/xlib/extensions/xrender/struct/point_fixed.rb +14 -0
- data/lib/xlib/extensions/xrender/struct/radial_gradient.rb +14 -0
- data/lib/xlib/extensions/xrender/struct/render_color.rb +16 -0
- data/lib/xlib/extensions/xrender/struct/render_direct_format.rb +20 -0
- data/lib/xlib/extensions/xrender/struct/render_pict_format.rb +17 -0
- data/lib/xlib/extensions/xrender/struct/render_picture_attributes.rb +25 -0
- data/lib/xlib/extensions/xrender/struct/span_fix.rb +15 -0
- data/lib/xlib/extensions/xrender/struct/transform.rb +13 -0
- data/lib/xlib/extensions/xrender/struct/trap.rb +14 -0
- data/lib/xlib/extensions/xrender/struct/trapezoid.rb +16 -0
- data/lib/xlib/extensions/xrender/struct/triangle.rb +15 -0
- data/lib/xlib/extensions/xrender/types.rb +37 -0
- data/lib/xlib/functions.rb +396 -0
- data/lib/xlib/struct/any_event.rb +17 -0
- data/lib/xlib/struct/button_event.rb +27 -0
- data/lib/xlib/struct/circulate_event.rb +19 -0
- data/lib/xlib/struct/circulate_request_event.rb +19 -0
- data/lib/xlib/struct/client_message_event.rb +27 -0
- data/lib/xlib/struct/colormap_event.rb +20 -0
- data/lib/xlib/struct/configure_event.rb +25 -0
- data/lib/xlib/struct/configure_request_event.rb +26 -0
- data/lib/xlib/struct/create_window_event.rb +24 -0
- data/lib/xlib/struct/crossing_event.rb +29 -0
- data/lib/xlib/struct/destroy_window_event.rb +18 -0
- data/lib/xlib/struct/display.rb +56 -0
- data/lib/xlib/struct/error_event.rb +19 -0
- data/lib/xlib/struct/event.rb +48 -0
- data/lib/xlib/struct/expose_event.rb +22 -0
- data/lib/xlib/struct/focus_change_event.rb +19 -0
- data/lib/xlib/struct/gc.rb +14 -0
- data/lib/xlib/struct/gc_values.rb +35 -0
- data/lib/xlib/struct/generic_event.rb +18 -0
- data/lib/xlib/struct/generic_event_cookie.rb +20 -0
- data/lib/xlib/struct/graphics_expose_event.rb +25 -0
- data/lib/xlib/struct/gravity_event.rb +20 -0
- data/lib/xlib/struct/image.rb +37 -0
- data/lib/xlib/struct/key_event.rb +27 -0
- data/lib/xlib/struct/key_sym.rb +28 -0
- data/lib/xlib/struct/keymap_event.rb +18 -0
- data/lib/xlib/struct/map_event.rb +19 -0
- data/lib/xlib/struct/map_request_event.rb +22 -0
- data/lib/xlib/struct/mapping_event.rb +20 -0
- data/lib/xlib/struct/motion_event.rb +27 -0
- data/lib/xlib/struct/no_expose_event.rb +19 -0
- data/lib/xlib/struct/point.rb +14 -0
- data/lib/xlib/struct/property_event.rb +20 -0
- data/lib/xlib/struct/reparent_event.rb +22 -0
- data/lib/xlib/struct/resize_request_event.rb +19 -0
- data/lib/xlib/struct/screen.rb +31 -0
- data/lib/xlib/struct/selection_clear_event.rb +19 -0
- data/lib/xlib/struct/selection_event.rb +21 -0
- data/lib/xlib/struct/selection_request_event.rb +22 -0
- data/lib/xlib/struct/unmap_event.rb +19 -0
- data/lib/xlib/struct/visibility_event.rb +18 -0
- data/lib/xlib/struct/visual.rb +20 -0
- data/lib/xlib/struct/window_attributes.rb +35 -0
- data/lib/xlib/types.rb +73 -0
- metadata +164 -0
@@ -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::XAnyEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:window, :Window
|
17
|
+
end
|
@@ -0,0 +1,27 @@
|
|
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::XButtonEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:window, :Window,
|
17
|
+
:root, :Window,
|
18
|
+
:subwindow, :Window,
|
19
|
+
:time, :Time,
|
20
|
+
:x, :int,
|
21
|
+
:y, :int,
|
22
|
+
:x_root, :int,
|
23
|
+
:y_root, :int,
|
24
|
+
:state, :uint,
|
25
|
+
:button, :uint,
|
26
|
+
:same_screen, :Bool
|
27
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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::XCirculateEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:event, :Window,
|
17
|
+
:window, :Window,
|
18
|
+
:place, :int
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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::XCirculateRequestEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:event, :Window,
|
17
|
+
:window, :Window,
|
18
|
+
:place, :int
|
19
|
+
end
|
@@ -0,0 +1,27 @@
|
|
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::XClientMessageEvent < FFI::Struct
|
11
|
+
class Data < FFI::Union
|
12
|
+
layout \
|
13
|
+
:b, [:char, 20],
|
14
|
+
:s, [:short, 10],
|
15
|
+
:l, [:long, 5]
|
16
|
+
end
|
17
|
+
|
18
|
+
layout \
|
19
|
+
:type, :int,
|
20
|
+
:serial, :ulong,
|
21
|
+
:send_event, :Bool,
|
22
|
+
:display, :pointer,
|
23
|
+
:window, :Window,
|
24
|
+
:message_type, :Atom,
|
25
|
+
:format, :int,
|
26
|
+
:data, Data
|
27
|
+
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::XColormapEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:window, :Window,
|
17
|
+
:colormap, :Colormap,
|
18
|
+
:new, :Bool,
|
19
|
+
:state, :int
|
20
|
+
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::XConfigureEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:event, :Window,
|
17
|
+
:window, :Window,
|
18
|
+
:x, :int,
|
19
|
+
:y, :int,
|
20
|
+
:width, :int,
|
21
|
+
:height, :int,
|
22
|
+
:border_width, :int,
|
23
|
+
:above, :Window,
|
24
|
+
:override_redirect, :Bool
|
25
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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::XConfigureRequestEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:event, :Window,
|
17
|
+
:window, :Window,
|
18
|
+
:x, :int,
|
19
|
+
:y, :int,
|
20
|
+
:width, :int,
|
21
|
+
:height, :int,
|
22
|
+
:border_width, :int,
|
23
|
+
:above, :Window,
|
24
|
+
:detail, :int,
|
25
|
+
:value_mask, :ulong
|
26
|
+
end
|
@@ -0,0 +1,24 @@
|
|
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::XCreateWindowEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:parent, :Window,
|
17
|
+
:window, :Window,
|
18
|
+
:x, :int,
|
19
|
+
:y, :int,
|
20
|
+
:width, :int,
|
21
|
+
:height, :int,
|
22
|
+
:border_width, :int,
|
23
|
+
:override_redirect, :Bool
|
24
|
+
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
|
+
class Xlib::XCrossingEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:window, :Window,
|
17
|
+
:root, :Window,
|
18
|
+
:subwindow, :Window,
|
19
|
+
:time, :Time,
|
20
|
+
:x, :int,
|
21
|
+
:y, :int,
|
22
|
+
:x_root, :int,
|
23
|
+
:y_root, :int,
|
24
|
+
:mode, :int,
|
25
|
+
:detail, :int,
|
26
|
+
:same_screen, :Bool,
|
27
|
+
:focus, :Bool,
|
28
|
+
:state, :uint
|
29
|
+
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::XDestroyWindowEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:event, :Window,
|
17
|
+
:window, :Window
|
18
|
+
end
|
@@ -0,0 +1,56 @@
|
|
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::Display < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:ext_data, :pointer,
|
13
|
+
:private1, :pointer,
|
14
|
+
:fd, :int,
|
15
|
+
:private2, :int,
|
16
|
+
:proto_major_version, :int,
|
17
|
+
:proto_minor_version, :int,
|
18
|
+
:vendor, :string,
|
19
|
+
:private3, :XID,
|
20
|
+
:private4, :XID,
|
21
|
+
:private5, :XID,
|
22
|
+
:private6, :int,
|
23
|
+
:resource_alloc, :pointer,
|
24
|
+
:byte_order, :int,
|
25
|
+
:bitmap_unit, :int,
|
26
|
+
:bitmap_pad, :int,
|
27
|
+
:bitmap_bit_order, :int,
|
28
|
+
:nformats, :int,
|
29
|
+
:pixmap_format, :pointer,
|
30
|
+
:private8, :int,
|
31
|
+
:release, :int,
|
32
|
+
:private9, :pointer,
|
33
|
+
:private10, :pointer,
|
34
|
+
:qlen, :int,
|
35
|
+
:last_request_read, :ulong,
|
36
|
+
:request, :ulong,
|
37
|
+
:private11, :pointer,
|
38
|
+
:private12, :pointer,
|
39
|
+
:private13, :pointer,
|
40
|
+
:private14, :pointer,
|
41
|
+
:max_request_size, :uint,
|
42
|
+
:db, :pointer,
|
43
|
+
:private15, :pointer,
|
44
|
+
:display_name, :string,
|
45
|
+
:default_screen, :int,
|
46
|
+
:nscreens, :int,
|
47
|
+
:screens, :pointer,
|
48
|
+
:motion_buffer, :ulong,
|
49
|
+
:private16, :ulong,
|
50
|
+
:min_keycode, :int,
|
51
|
+
:max_keycode, :int,
|
52
|
+
:private17, :pointer,
|
53
|
+
:private18, :pointer,
|
54
|
+
:private19, :int,
|
55
|
+
:xdefaults, :string
|
56
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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::XErrorEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:display, :pointer,
|
14
|
+
:resourceid, :XID,
|
15
|
+
:serial, :ulong,
|
16
|
+
:error_code, :uchar,
|
17
|
+
:request_code, :uchar,
|
18
|
+
:minor_code, :uchar
|
19
|
+
end
|
@@ -0,0 +1,48 @@
|
|
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::XEvent < FFI::Union
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:xany, Xlib::XAnyEvent,
|
14
|
+
:xkey, Xlib::XKeyEvent,
|
15
|
+
:xbutton, Xlib::XButtonEvent,
|
16
|
+
:xmotion, Xlib::XMotionEvent,
|
17
|
+
:xcrossing, Xlib::XCrossingEvent,
|
18
|
+
:xfocus, Xlib::XFocusChangeEvent,
|
19
|
+
:xexpose, Xlib::XExposeEvent,
|
20
|
+
:xgraphicsexpose, Xlib::XGraphicsExposeEvent,
|
21
|
+
:xnoexpose, Xlib::XNoExposeEvent,
|
22
|
+
:xvisibility, Xlib::XVisibilityEvent,
|
23
|
+
:xcreatewindow, Xlib::XCreateWindowEvent,
|
24
|
+
:xdestroywindow, Xlib::XDestroyWindowEvent,
|
25
|
+
:xunmap, Xlib::XUnmapEvent,
|
26
|
+
:xmap, Xlib::XMapEvent,
|
27
|
+
:xmaprequest, Xlib::XMapRequestEvent,
|
28
|
+
:xreparent, Xlib::XReparentEvent,
|
29
|
+
:xconfigure, Xlib::XConfigureEvent,
|
30
|
+
:xgravity, Xlib::XGravityEvent,
|
31
|
+
:xresizerequest, Xlib::XResizeRequestEvent,
|
32
|
+
:xconfigurerequest, Xlib::XConfigureRequestEvent,
|
33
|
+
:xcirculate, Xlib::XCirculateEvent,
|
34
|
+
:xcirculaterequest, Xlib::XCirculateRequestEvent,
|
35
|
+
:xproperty, Xlib::XPropertyEvent,
|
36
|
+
:xselectionclear, Xlib::XSelectionClearEvent,
|
37
|
+
:xselectionrequest, Xlib::XSelectionRequestEvent,
|
38
|
+
:xselection, Xlib::XSelectionEvent,
|
39
|
+
:xcolormap, Xlib::XColormapEvent,
|
40
|
+
:xclient, Xlib::XClientMessageEvent,
|
41
|
+
:xmapping, Xlib::XMappingEvent,
|
42
|
+
:xerror, Xlib::XErrorEvent,
|
43
|
+
:xkeymap, Xlib::XKeymapEvent,
|
44
|
+
:xgeneric, Xlib::XGenericEvent,
|
45
|
+
:xcookie, Xlib::XGenericEventCookie,
|
46
|
+
:pad, [:long, 24]
|
47
|
+
end
|
48
|
+
|
@@ -0,0 +1,22 @@
|
|
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::XExposeEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:window, :Window,
|
17
|
+
:x, :int,
|
18
|
+
:y, :int,
|
19
|
+
:width, :int,
|
20
|
+
:height, :int,
|
21
|
+
:count, :int
|
22
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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::XFocusChangeEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:window, :Window,
|
17
|
+
:mode, :int,
|
18
|
+
:detail, :int
|
19
|
+
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::GC < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:ext_data, :pointer,
|
13
|
+
:gid, :GC
|
14
|
+
end
|