xlib 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/xlib/functions.rb +1 -0
- data/lib/xlib/types.rb +0 -1
- metadata +3 -4
- data/lib/xlib/struct/key_sym.rb +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc3a03271889c5aa4ae3003f6e8211af0aa6b3b9
|
4
|
+
data.tar.gz: 26509fee72312844a2d4167a3f2428ad87df0d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7c494612beee8a56865aca1ac4bad301cb4936a360fdcc00915a7247d5bcf59a8c1afc4aba11651d1b59c8dd78a6146c1162a5902c7d8603deeb89964dd5602
|
7
|
+
data.tar.gz: b1f5e2b0a54302fd29d03995b323e1a90dc6f310f91da6df1db2270cd1dc20095112f4c4c799850ea9b6e6ead8c21a00a8608e59f35ed06f05baa1e0bac2c54a
|
data/lib/xlib/functions.rb
CHANGED
@@ -121,6 +121,7 @@ attach_function :XDefaultScreenOfDisplay, [:pointer], :pointer
|
|
121
121
|
attach_function :XEventMaskOfScreen, [:pointer], :long
|
122
122
|
attach_function :XScreenNumberOfScreen, [:pointer], :int
|
123
123
|
|
124
|
+
attach_function :XSynchronize, [:pointer, :Bool], :int
|
124
125
|
callback :error_handler, [:pointer, :pointer], :int
|
125
126
|
attach_function :XSetErrorHandler, [:error_handler], :pointer
|
126
127
|
callback :io_error_handler, [:pointer], :int
|
data/lib/xlib/types.rb
CHANGED
@@ -34,7 +34,6 @@ require_relative 'struct/gc_values'
|
|
34
34
|
require_relative 'struct/screen'
|
35
35
|
require_relative 'struct/window_attributes'
|
36
36
|
require_relative 'struct/visual'
|
37
|
-
require_relative 'struct/key_sym'
|
38
37
|
require_relative 'struct/point'
|
39
38
|
|
40
39
|
require_relative 'struct/any_event'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Aue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -117,7 +117,6 @@ files:
|
|
117
117
|
- lib/xlib/struct/gravity_event.rb
|
118
118
|
- lib/xlib/struct/image.rb
|
119
119
|
- lib/xlib/struct/key_event.rb
|
120
|
-
- lib/xlib/struct/key_sym.rb
|
121
120
|
- lib/xlib/struct/keymap_event.rb
|
122
121
|
- lib/xlib/struct/map_event.rb
|
123
122
|
- lib/xlib/struct/map_request_event.rb
|
@@ -157,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
156
|
version: '0'
|
158
157
|
requirements: []
|
159
158
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.4.5
|
159
|
+
rubygems_version: 2.4.5.1
|
161
160
|
signing_key:
|
162
161
|
specification_version: 4
|
163
162
|
summary: Interface to Xlib and its Xrender and Xrandr extensions
|
data/lib/xlib/struct/key_sym.rb
DELETED
@@ -1,28 +0,0 @@
|
|
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
|