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,35 @@
|
|
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::XGCValues < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:function, :int,
|
13
|
+
:plane_mask, :ulong,
|
14
|
+
:foreground, :ulong,
|
15
|
+
:background, :ulong,
|
16
|
+
:line_width, :int,
|
17
|
+
:line_style, :int,
|
18
|
+
:cap_style, :int,
|
19
|
+
:join_style, :int,
|
20
|
+
:fill_style, :int,
|
21
|
+
:fill_rule, :int,
|
22
|
+
:arc_mode, :int,
|
23
|
+
:tile, :Pixmap,
|
24
|
+
:stipple, :Pixmap,
|
25
|
+
:ts_x_origin, :int,
|
26
|
+
:ts_y_origin, :int,
|
27
|
+
:font, :Font,
|
28
|
+
:subwindow_mode, :int,
|
29
|
+
:graphics_exposures, :Bool,
|
30
|
+
:clip_x_origin, :int,
|
31
|
+
:clip_y_origin, :int,
|
32
|
+
:clip_mask, :Pixmap,
|
33
|
+
:dash_offset, :int,
|
34
|
+
:dashes, :char
|
35
|
+
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::XGenericEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:extension, :int,
|
17
|
+
:evtype, :int
|
18
|
+
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::XGenericEventCookie < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:extension, :int,
|
17
|
+
:evtype, :int,
|
18
|
+
:cookie, :uint,
|
19
|
+
:data, :pointer
|
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::XGraphicsExposeEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:window, :Window,
|
17
|
+
:drawable, :Drawable,
|
18
|
+
:x, :int,
|
19
|
+
:y, :int,
|
20
|
+
:width, :int,
|
21
|
+
:height, :int,
|
22
|
+
:count, :int,
|
23
|
+
:major_code, :int,
|
24
|
+
:minor_code, :int
|
25
|
+
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::XGravityEvent < 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
|
+
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
|
+
class Xlib::XImage < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:width, :int,
|
13
|
+
:height, :int,
|
14
|
+
:xoffset, :int,
|
15
|
+
:format, :int,
|
16
|
+
:data, :pointer,
|
17
|
+
:byte_order, :int,
|
18
|
+
:bitmap_unit, :int,
|
19
|
+
:bitmap_bit_order, :int,
|
20
|
+
:bitmap_pad, :int,
|
21
|
+
:depth, :int,
|
22
|
+
:bytes_per_line, :int,
|
23
|
+
:red_mask, :ulong,
|
24
|
+
:green_mask, :ulong,
|
25
|
+
:blue_mask, :ulong,
|
26
|
+
:obdata, :pointer,
|
27
|
+
|
28
|
+
:f, Class.new(FFI::Struct) {
|
29
|
+
layout \
|
30
|
+
:create_image, :pointer,
|
31
|
+
:destroy_image, :pointer,
|
32
|
+
:get_pixel, :pointer,
|
33
|
+
:put_pixel, :pointer,
|
34
|
+
:sub_image, :pointer,
|
35
|
+
:add_pixel, :pointer
|
36
|
+
}
|
37
|
+
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::XKeyEvent < 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
|
+
:keycode, :uint,
|
26
|
+
:same_screen, :Bool
|
27
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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; module C
|
11
|
+
|
12
|
+
module KeySym
|
13
|
+
extend FFI::DataConverter
|
14
|
+
|
15
|
+
native_type :XID
|
16
|
+
|
17
|
+
def self.to_native (value, ctx)
|
18
|
+
value.to_i
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.from_native (value, ctx)
|
22
|
+
Xlib::Keysym.new(value)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
FFI.typedef KeySym, :KeySym
|
27
|
+
|
28
|
+
end; 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::XKeymapEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:window, :Window,
|
17
|
+
:key_vector, [:char, 32]
|
18
|
+
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::XMapEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:event, :Window,
|
17
|
+
:window, :Window,
|
18
|
+
:override_redirect, :Bool
|
19
|
+
end
|
@@ -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::XMapRequestEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:event, :Window,
|
17
|
+
:window, :Window,
|
18
|
+
:parent, :Window,
|
19
|
+
:x, :int,
|
20
|
+
:y, :int,
|
21
|
+
:override_redirect, :Bool
|
22
|
+
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::XMappingEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:window, :Window,
|
17
|
+
:request, :int,
|
18
|
+
:first_keycode, :int,
|
19
|
+
:count, :int
|
20
|
+
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::XMotionEvent < 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
|
+
:is_hint, :char,
|
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::XNoExposeEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:drawable, :Drawable,
|
17
|
+
:major_code, :int,
|
18
|
+
:minor_code, :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::XPoint < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:x, :short,
|
13
|
+
:y, :short
|
14
|
+
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::XPropertyEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:window, :Window,
|
17
|
+
:atom, :Atom,
|
18
|
+
:time, :Time,
|
19
|
+
:state, :int
|
20
|
+
end
|
@@ -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::XReparentEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:event, :Window,
|
17
|
+
:window, :Window,
|
18
|
+
:parent, :Window,
|
19
|
+
:x, :int,
|
20
|
+
:y, :int,
|
21
|
+
:override_redirect, :Bool
|
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::XResizeRequestEvent < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:type, :int,
|
13
|
+
:serial, :ulong,
|
14
|
+
:send_event, :Bool,
|
15
|
+
:display, :pointer,
|
16
|
+
:window, :Window,
|
17
|
+
:width, :int,
|
18
|
+
:height, :int
|
19
|
+
end
|
@@ -0,0 +1,31 @@
|
|
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::Screen < FFI::Struct
|
11
|
+
layout \
|
12
|
+
:ext_data, :pointer,
|
13
|
+
:display, :pointer,
|
14
|
+
:root, :Window,
|
15
|
+
:width, :int,
|
16
|
+
:height, :int,
|
17
|
+
:mwidth, :int,
|
18
|
+
:mheight, :int,
|
19
|
+
:ndepths, :int,
|
20
|
+
:depths, :pointer,
|
21
|
+
:root_depth, :int,
|
22
|
+
:root_visual, :pointer,
|
23
|
+
:default_gc, Xlib::GC,
|
24
|
+
:cmap, :Colormap,
|
25
|
+
:white_pixel, :ulong,
|
26
|
+
:black_pixel, :ulong,
|
27
|
+
:max_maps, :int,
|
28
|
+
:min_maps, :int,
|
29
|
+
:save_unders, :Bool,
|
30
|
+
:root_input_mask, :long
|
31
|
+
end
|