reflexion 0.1.22 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.doc/ext/reflex/event.cpp +9 -1
  3. data/.doc/ext/reflex/key_event.cpp +3 -3
  4. data/.doc/ext/reflex/native.cpp +2 -0
  5. data/.doc/ext/reflex/pointer.cpp +158 -0
  6. data/.doc/ext/reflex/pointer_event.cpp +29 -88
  7. data/.doc/ext/reflex/selector.cpp +8 -0
  8. data/.doc/ext/reflex/view.cpp +57 -0
  9. data/.doc/ext/reflex/window.cpp +24 -0
  10. data/VERSION +1 -1
  11. data/ext/reflex/event.cpp +11 -2
  12. data/ext/reflex/key_event.cpp +3 -3
  13. data/ext/reflex/native.cpp +2 -0
  14. data/ext/reflex/pointer.cpp +170 -0
  15. data/ext/reflex/pointer_event.cpp +29 -94
  16. data/ext/reflex/selector.cpp +9 -0
  17. data/ext/reflex/view.cpp +67 -3
  18. data/ext/reflex/window.cpp +30 -3
  19. data/include/reflex/defs.h +0 -18
  20. data/include/reflex/event.h +26 -27
  21. data/include/reflex/pointer.h +107 -0
  22. data/include/reflex/ruby/pointer.h +41 -0
  23. data/include/reflex/ruby/view.h +9 -0
  24. data/include/reflex/ruby/window.h +9 -0
  25. data/include/reflex/selector.h +1 -1
  26. data/include/reflex/view.h +6 -4
  27. data/include/reflex/window.h +10 -8
  28. data/lib/reflex/key_event.rb +1 -1
  29. data/lib/reflex/pointer.rb +107 -0
  30. data/lib/reflex/pointer_event.rb +16 -54
  31. data/lib/reflex.rb +1 -0
  32. data/reflex.gemspec +5 -5
  33. data/src/event.cpp +189 -37
  34. data/src/event.h +32 -0
  35. data/src/ios/event.h +15 -3
  36. data/src/ios/event.mm +126 -11
  37. data/src/ios/view_controller.mm +49 -21
  38. data/src/osx/event.h +6 -3
  39. data/src/osx/event.mm +40 -22
  40. data/src/osx/native_window.mm +79 -16
  41. data/src/pointer.cpp +203 -0
  42. data/src/pointer.h +26 -0
  43. data/src/selector.cpp +1 -1
  44. data/src/view.cpp +83 -72
  45. data/src/view.h +0 -4
  46. data/src/window.cpp +321 -97
  47. data/src/window.h +22 -3
  48. data/test/test_event.rb +16 -2
  49. data/test/test_pointer.rb +149 -0
  50. data/test/test_pointer_event.rb +70 -104
  51. data/test/test_selector.rb +7 -0
  52. data/test/test_view.rb +38 -11
  53. data/test/test_window.rb +27 -25
  54. metadata +46 -35
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reflexion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - xordog
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-13 00:00:00.000000000 Z
11
+ date: 2021-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xot
@@ -16,91 +16,92 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.22
19
+ version: 0.1.23
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.22
26
+ version: 0.1.23
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rucy
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.22
33
+ version: 0.1.23
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.22
40
+ version: 0.1.23
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: beeps
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.1.22
47
+ version: 0.1.23
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.1.22
54
+ version: 0.1.23
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rays
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.1.22
61
+ version: 0.1.23
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.1.22
68
+ version: 0.1.23
69
69
  description: This library helps you to develop interactive graphical user interface.
70
70
  email: xordog@gmail.com
71
71
  executables: []
72
72
  extensions:
73
73
  - Rakefile
74
74
  extra_rdoc_files:
75
- - ".doc/ext/reflex/key_event.cpp"
76
- - ".doc/ext/reflex/style_length.cpp"
75
+ - ".doc/ext/reflex/application.cpp"
76
+ - ".doc/ext/reflex/capture_event.cpp"
77
+ - ".doc/ext/reflex/contact_event.cpp"
77
78
  - ".doc/ext/reflex/draw_event.cpp"
78
- - ".doc/ext/reflex/frame_event.cpp"
79
+ - ".doc/ext/reflex/ellipse_shape.cpp"
80
+ - ".doc/ext/reflex/event.cpp"
81
+ - ".doc/ext/reflex/filter.cpp"
79
82
  - ".doc/ext/reflex/focus_event.cpp"
80
- - ".doc/ext/reflex/style.cpp"
81
- - ".doc/ext/reflex/window.cpp"
82
- - ".doc/ext/reflex/contact_event.cpp"
83
- - ".doc/ext/reflex/pointer_event.cpp"
84
- - ".doc/ext/reflex/timer.cpp"
83
+ - ".doc/ext/reflex/frame_event.cpp"
84
+ - ".doc/ext/reflex/image_view.cpp"
85
+ - ".doc/ext/reflex/key_event.cpp"
85
86
  - ".doc/ext/reflex/line_shape.cpp"
86
- - ".doc/ext/reflex/timer_event.cpp"
87
- - ".doc/ext/reflex/reflex.cpp"
88
- - ".doc/ext/reflex/view.cpp"
89
- - ".doc/ext/reflex/filter.cpp"
90
- - ".doc/ext/reflex/update_event.cpp"
91
- - ".doc/ext/reflex/native.cpp"
92
87
  - ".doc/ext/reflex/motion_event.cpp"
93
- - ".doc/ext/reflex/shape.cpp"
94
- - ".doc/ext/reflex/ellipse_shape.cpp"
88
+ - ".doc/ext/reflex/native.cpp"
89
+ - ".doc/ext/reflex/pointer.cpp"
90
+ - ".doc/ext/reflex/pointer_event.cpp"
95
91
  - ".doc/ext/reflex/polygon_shape.cpp"
92
+ - ".doc/ext/reflex/rect_shape.cpp"
93
+ - ".doc/ext/reflex/reflex.cpp"
96
94
  - ".doc/ext/reflex/scroll_event.cpp"
97
- - ".doc/ext/reflex/capture_event.cpp"
98
- - ".doc/ext/reflex/event.cpp"
99
- - ".doc/ext/reflex/application.cpp"
100
- - ".doc/ext/reflex/wheel_event.cpp"
101
95
  - ".doc/ext/reflex/selector.cpp"
102
- - ".doc/ext/reflex/image_view.cpp"
103
- - ".doc/ext/reflex/rect_shape.cpp"
96
+ - ".doc/ext/reflex/shape.cpp"
97
+ - ".doc/ext/reflex/style.cpp"
98
+ - ".doc/ext/reflex/style_length.cpp"
99
+ - ".doc/ext/reflex/timer.cpp"
100
+ - ".doc/ext/reflex/timer_event.cpp"
101
+ - ".doc/ext/reflex/update_event.cpp"
102
+ - ".doc/ext/reflex/view.cpp"
103
+ - ".doc/ext/reflex/wheel_event.cpp"
104
+ - ".doc/ext/reflex/window.cpp"
104
105
  files:
105
106
  - ".doc/ext/reflex/application.cpp"
106
107
  - ".doc/ext/reflex/capture_event.cpp"
@@ -116,6 +117,7 @@ files:
116
117
  - ".doc/ext/reflex/line_shape.cpp"
117
118
  - ".doc/ext/reflex/motion_event.cpp"
118
119
  - ".doc/ext/reflex/native.cpp"
120
+ - ".doc/ext/reflex/pointer.cpp"
119
121
  - ".doc/ext/reflex/pointer_event.cpp"
120
122
  - ".doc/ext/reflex/polygon_shape.cpp"
121
123
  - ".doc/ext/reflex/rect_shape.cpp"
@@ -151,6 +153,7 @@ files:
151
153
  - ext/reflex/line_shape.cpp
152
154
  - ext/reflex/motion_event.cpp
153
155
  - ext/reflex/native.cpp
156
+ - ext/reflex/pointer.cpp
154
157
  - ext/reflex/pointer_event.cpp
155
158
  - ext/reflex/polygon_shape.cpp
156
159
  - ext/reflex/rect_shape.cpp
@@ -175,12 +178,14 @@ files:
175
178
  - include/reflex/exception.h
176
179
  - include/reflex/filter.h
177
180
  - include/reflex/image_view.h
181
+ - include/reflex/pointer.h
178
182
  - include/reflex/reflex.h
179
183
  - include/reflex/ruby.h
180
184
  - include/reflex/ruby/application.h
181
185
  - include/reflex/ruby/event.h
182
186
  - include/reflex/ruby/filter.h
183
187
  - include/reflex/ruby/image_view.h
188
+ - include/reflex/ruby/pointer.h
184
189
  - include/reflex/ruby/reflex.h
185
190
  - include/reflex/ruby/selector.h
186
191
  - include/reflex/ruby/shape.h
@@ -226,6 +231,7 @@ files:
226
231
  - lib/reflex/module.rb
227
232
  - lib/reflex/painter.rb
228
233
  - lib/reflex/point.rb
234
+ - lib/reflex/pointer.rb
229
235
  - lib/reflex/pointer_event.rb
230
236
  - lib/reflex/polygon.rb
231
237
  - lib/reflex/polygon_shape.rb
@@ -292,6 +298,7 @@ files:
292
298
  - src/body.cpp
293
299
  - src/body.h
294
300
  - src/event.cpp
301
+ - src/event.h
295
302
  - src/exception.cpp
296
303
  - src/filter.cpp
297
304
  - src/fixture.cpp
@@ -321,6 +328,8 @@ files:
321
328
  - src/osx/reflex.mm
322
329
  - src/osx/window.h
323
330
  - src/osx/window.mm
331
+ - src/pointer.cpp
332
+ - src/pointer.h
324
333
  - src/selector.cpp
325
334
  - src/selector.h
326
335
  - src/shape.cpp
@@ -350,6 +359,7 @@ files:
350
359
  - test/test_has_frame.rb
351
360
  - test/test_model.rb
352
361
  - test/test_model_owner.rb
362
+ - test/test_pointer.rb
353
363
  - test/test_pointer_event.rb
354
364
  - test/test_reflex.rb
355
365
  - test/test_selector.rb
@@ -367,16 +377,16 @@ require_paths:
367
377
  - lib
368
378
  required_ruby_version: !ruby/object:Gem::Requirement
369
379
  requirements:
370
- - - "~>"
380
+ - - ">="
371
381
  - !ruby/object:Gem::Version
372
- version: '2'
382
+ version: 2.6.0
373
383
  required_rubygems_version: !ruby/object:Gem::Requirement
374
384
  requirements:
375
385
  - - ">="
376
386
  - !ruby/object:Gem::Version
377
387
  version: '0'
378
388
  requirements: []
379
- rubygems_version: 3.0.3
389
+ rubygems_version: 3.2.22
380
390
  signing_key:
381
391
  specification_version: 4
382
392
  summary: A Graphical User Interface Tool Kit.
@@ -388,6 +398,7 @@ test_files:
388
398
  - test/test_has_frame.rb
389
399
  - test/test_model.rb
390
400
  - test/test_model_owner.rb
401
+ - test/test_pointer.rb
391
402
  - test/test_pointer_event.rb
392
403
  - test/test_reflex.rb
393
404
  - test/test_selector.rb