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,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
|