reflexion 0.1.39 → 0.1.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.doc/ext/reflex/native.cpp +2 -0
- data/.doc/ext/reflex/screen.cpp +53 -0
- data/.doc/ext/reflex/view.cpp +22 -0
- data/.doc/ext/reflex/window.cpp +70 -12
- data/ChangeLog.md +15 -0
- data/VERSION +1 -1
- data/ext/reflex/native.cpp +2 -0
- data/ext/reflex/screen.cpp +55 -0
- data/ext/reflex/view.cpp +38 -14
- data/ext/reflex/window.cpp +76 -13
- data/include/reflex/ruby/screen.h +40 -0
- data/include/reflex/screen.h +43 -0
- data/include/reflex/view.h +3 -1
- data/include/reflex/window.h +21 -3
- data/lib/reflex/contact_event.rb +1 -1
- data/lib/reflex/screen.rb +21 -0
- data/lib/reflex/view.rb +3 -2
- data/lib/reflex/window.rb +3 -1
- data/lib/reflex.rb +1 -0
- data/reflex.gemspec +11 -14
- data/src/body.cpp +14 -0
- data/src/body.h +4 -0
- data/src/osx/native_window.mm +10 -10
- data/src/osx/screen.h +21 -0
- data/src/osx/screen.mm +58 -0
- data/src/osx/window.h +4 -0
- data/src/osx/window.mm +35 -9
- data/src/view.cpp +13 -2
- data/src/window.cpp +23 -7
- data/src/window.h +6 -2
- data/test/test_event.rb +4 -0
- data/test/test_screen.rb +18 -0
- data/test/test_view.rb +20 -6
- data/test/test_window.rb +48 -6
- metadata +23 -12
data/test/test_window.rb
CHANGED
@@ -12,17 +12,21 @@ class TestWindow < Test::Unit::TestCase
|
|
12
12
|
|
13
13
|
def test_show_hide_hidden()
|
14
14
|
w = win
|
15
|
-
|
15
|
+
assert_true w.hidden
|
16
16
|
w.show
|
17
|
-
|
17
|
+
assert_false w.hidden
|
18
18
|
w.hide
|
19
|
-
|
19
|
+
assert_true w.hidden
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_hidden_count()
|
23
|
+
w = win
|
20
24
|
w.hide
|
21
|
-
|
25
|
+
assert_true w.hidden
|
22
26
|
w.show
|
23
|
-
|
27
|
+
assert_true w.hidden
|
24
28
|
w.show
|
25
|
-
|
29
|
+
assert_false w.hidden
|
26
30
|
end
|
27
31
|
|
28
32
|
def test_coord_conversion()
|
@@ -66,6 +70,40 @@ class TestWindow < Test::Unit::TestCase
|
|
66
70
|
w.frame = [bounds(1, 2, 3, 4, 5, 6)]; assert_equal [1, 2, 0, 4, 5, 0], w.frame.to_a(3)
|
67
71
|
end
|
68
72
|
|
73
|
+
def test_closable?()
|
74
|
+
w = win
|
75
|
+
assert_true w.closable?
|
76
|
+
|
77
|
+
w.closable = false
|
78
|
+
assert_false w.closable?
|
79
|
+
|
80
|
+
w.closable = true
|
81
|
+
assert_true w.closable?
|
82
|
+
|
83
|
+
w.closable false
|
84
|
+
assert_false w.closable?
|
85
|
+
|
86
|
+
w.closable true
|
87
|
+
assert_true w.closable?
|
88
|
+
end
|
89
|
+
|
90
|
+
def test_minimizable?()
|
91
|
+
w = win
|
92
|
+
assert_true w.minimizable?
|
93
|
+
|
94
|
+
w.minimizable = false
|
95
|
+
assert_false w.minimizable?
|
96
|
+
|
97
|
+
w.minimizable = true
|
98
|
+
assert_true w.minimizable?
|
99
|
+
|
100
|
+
w.minimizable false
|
101
|
+
assert_false w.minimizable?
|
102
|
+
|
103
|
+
w.minimizable true
|
104
|
+
assert_true w.minimizable?
|
105
|
+
end
|
106
|
+
|
69
107
|
def test_resizable?()
|
70
108
|
w = win
|
71
109
|
assert_true w.resizable?
|
@@ -83,6 +121,10 @@ class TestWindow < Test::Unit::TestCase
|
|
83
121
|
assert_true w.resizable?
|
84
122
|
end
|
85
123
|
|
124
|
+
def test_screen()
|
125
|
+
assert_not_nil win.screen
|
126
|
+
end
|
127
|
+
|
86
128
|
def test_root()
|
87
129
|
w = win
|
88
130
|
assert_not_nil w.root
|
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.
|
4
|
+
version: 0.1.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xordog
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.
|
19
|
+
version: 0.1.38
|
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.
|
26
|
+
version: 0.1.38
|
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.
|
33
|
+
version: 0.1.38
|
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.
|
40
|
+
version: 0.1.38
|
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.
|
47
|
+
version: 0.1.39
|
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.
|
54
|
+
version: 0.1.39
|
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.
|
61
|
+
version: 0.1.39
|
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.
|
68
|
+
version: 0.1.39
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,6 +120,7 @@ extra_rdoc_files:
|
|
120
120
|
- ".doc/ext/reflex/polygon_shape.cpp"
|
121
121
|
- ".doc/ext/reflex/rect_shape.cpp"
|
122
122
|
- ".doc/ext/reflex/reflex.cpp"
|
123
|
+
- ".doc/ext/reflex/screen.cpp"
|
123
124
|
- ".doc/ext/reflex/scroll_event.cpp"
|
124
125
|
- ".doc/ext/reflex/selector.cpp"
|
125
126
|
- ".doc/ext/reflex/shape.cpp"
|
@@ -152,6 +153,7 @@ files:
|
|
152
153
|
- ".doc/ext/reflex/polygon_shape.cpp"
|
153
154
|
- ".doc/ext/reflex/rect_shape.cpp"
|
154
155
|
- ".doc/ext/reflex/reflex.cpp"
|
156
|
+
- ".doc/ext/reflex/screen.cpp"
|
155
157
|
- ".doc/ext/reflex/scroll_event.cpp"
|
156
158
|
- ".doc/ext/reflex/selector.cpp"
|
157
159
|
- ".doc/ext/reflex/shape.cpp"
|
@@ -194,6 +196,7 @@ files:
|
|
194
196
|
- ext/reflex/polygon_shape.cpp
|
195
197
|
- ext/reflex/rect_shape.cpp
|
196
198
|
- ext/reflex/reflex.cpp
|
199
|
+
- ext/reflex/screen.cpp
|
197
200
|
- ext/reflex/scroll_event.cpp
|
198
201
|
- ext/reflex/selector.cpp
|
199
202
|
- ext/reflex/selector.h
|
@@ -225,12 +228,14 @@ files:
|
|
225
228
|
- include/reflex/ruby/image_view.h
|
226
229
|
- include/reflex/ruby/pointer.h
|
227
230
|
- include/reflex/ruby/reflex.h
|
231
|
+
- include/reflex/ruby/screen.h
|
228
232
|
- include/reflex/ruby/selector.h
|
229
233
|
- include/reflex/ruby/shape.h
|
230
234
|
- include/reflex/ruby/style.h
|
231
235
|
- include/reflex/ruby/timer.h
|
232
236
|
- include/reflex/ruby/view.h
|
233
237
|
- include/reflex/ruby/window.h
|
238
|
+
- include/reflex/screen.h
|
234
239
|
- include/reflex/selector.h
|
235
240
|
- include/reflex/shape.h
|
236
241
|
- include/reflex/style.h
|
@@ -276,6 +281,7 @@ files:
|
|
276
281
|
- lib/reflex/polyline.rb
|
277
282
|
- lib/reflex/rect_shape.rb
|
278
283
|
- lib/reflex/reflex.rb
|
284
|
+
- lib/reflex/screen.rb
|
279
285
|
- lib/reflex/scroll_event.rb
|
280
286
|
- lib/reflex/selector.rb
|
281
287
|
- lib/reflex/shader.rb
|
@@ -364,6 +370,8 @@ files:
|
|
364
370
|
- src/osx/opengl_view.h
|
365
371
|
- src/osx/opengl_view.mm
|
366
372
|
- src/osx/reflex.mm
|
373
|
+
- src/osx/screen.h
|
374
|
+
- src/osx/screen.mm
|
367
375
|
- src/osx/window.h
|
368
376
|
- src/osx/window.mm
|
369
377
|
- src/pointer.cpp
|
@@ -404,6 +412,7 @@ files:
|
|
404
412
|
- test/test_pointer.rb
|
405
413
|
- test/test_pointer_event.rb
|
406
414
|
- test/test_reflex_init.rb
|
415
|
+
- test/test_screen.rb
|
407
416
|
- test/test_scroll_event.rb
|
408
417
|
- test/test_selector.rb
|
409
418
|
- test/test_shape.rb
|
@@ -415,7 +424,8 @@ files:
|
|
415
424
|
- test/test_wheel_event.rb
|
416
425
|
- test/test_window.rb
|
417
426
|
homepage: https://github.com/xord/reflex
|
418
|
-
licenses:
|
427
|
+
licenses:
|
428
|
+
- MIT
|
419
429
|
metadata: {}
|
420
430
|
post_install_message:
|
421
431
|
rdoc_options: []
|
@@ -425,7 +435,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
425
435
|
requirements:
|
426
436
|
- - ">="
|
427
437
|
- !ruby/object:Gem::Version
|
428
|
-
version:
|
438
|
+
version: 3.0.0
|
429
439
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
430
440
|
requirements:
|
431
441
|
- - ">="
|
@@ -452,6 +462,7 @@ test_files:
|
|
452
462
|
- test/test_pointer.rb
|
453
463
|
- test/test_pointer_event.rb
|
454
464
|
- test/test_reflex_init.rb
|
465
|
+
- test/test_screen.rb
|
455
466
|
- test/test_scroll_event.rb
|
456
467
|
- test/test_selector.rb
|
457
468
|
- test/test_shape.rb
|