reflexion 0.1.35 → 0.1.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/.doc/ext/reflex/view.cpp +17 -0
  3. data/ChangeLog.md +10 -0
  4. data/Rakefile +1 -1
  5. data/VERSION +1 -1
  6. data/ext/reflex/extconf.rb +0 -3
  7. data/ext/reflex/view.cpp +19 -0
  8. data/include/reflex/event.h +1 -1
  9. data/include/reflex/view.h +6 -0
  10. data/lib/reflex/application.rb +2 -3
  11. data/lib/reflex/autoinit.rb +0 -3
  12. data/lib/reflex/bitmap.rb +0 -3
  13. data/lib/reflex/bounds.rb +0 -3
  14. data/lib/reflex/button.rb +0 -3
  15. data/lib/reflex/camera.rb +0 -3
  16. data/lib/reflex/capture_event.rb +0 -3
  17. data/lib/reflex/color.rb +0 -3
  18. data/lib/reflex/color_space.rb +0 -3
  19. data/lib/reflex/contact_event.rb +0 -3
  20. data/lib/reflex/draw_event.rb +0 -3
  21. data/lib/reflex/ellipse_shape.rb +0 -3
  22. data/lib/reflex/ext.rb +0 -3
  23. data/lib/reflex/extension.rb +0 -3
  24. data/lib/reflex/filter.rb +0 -3
  25. data/lib/reflex/fixture.rb +0 -3
  26. data/lib/reflex/focus_event.rb +0 -3
  27. data/lib/reflex/font.rb +0 -3
  28. data/lib/reflex/frame_event.rb +0 -3
  29. data/lib/reflex/helper.rb +0 -3
  30. data/lib/reflex/image.rb +0 -3
  31. data/lib/reflex/image_view.rb +0 -3
  32. data/lib/reflex/key_event.rb +0 -3
  33. data/lib/reflex/line_shape.rb +0 -3
  34. data/lib/reflex/list_view.rb +0 -3
  35. data/lib/reflex/matrix.rb +0 -3
  36. data/lib/reflex/model.rb +0 -3
  37. data/lib/reflex/model_owner.rb +0 -3
  38. data/lib/reflex/model_view.rb +0 -3
  39. data/lib/reflex/painter.rb +0 -3
  40. data/lib/reflex/point.rb +0 -3
  41. data/lib/reflex/pointer.rb +0 -3
  42. data/lib/reflex/pointer_event.rb +0 -3
  43. data/lib/reflex/polygon.rb +0 -3
  44. data/lib/reflex/polygon_shape.rb +0 -3
  45. data/lib/reflex/polyline.rb +0 -3
  46. data/lib/reflex/rect_shape.rb +0 -3
  47. data/lib/reflex/reflex.rb +0 -3
  48. data/lib/reflex/scroll_event.rb +0 -3
  49. data/lib/reflex/selector.rb +0 -3
  50. data/lib/reflex/shader.rb +0 -3
  51. data/lib/reflex/shape.rb +0 -3
  52. data/lib/reflex/style.rb +0 -3
  53. data/lib/reflex/style_length.rb +0 -3
  54. data/lib/reflex/text_view.rb +0 -3
  55. data/lib/reflex/timer.rb +0 -3
  56. data/lib/reflex/timer_event.rb +0 -3
  57. data/lib/reflex/update_event.rb +0 -3
  58. data/lib/reflex/view.rb +10 -4
  59. data/lib/reflex/wheel_event.rb +0 -3
  60. data/lib/reflex/window.rb +2 -3
  61. data/lib/reflex.rb +0 -3
  62. data/lib/reflexion/include.rb +0 -3
  63. data/lib/reflexion.rb +0 -3
  64. data/reflex.gemspec +5 -5
  65. data/samples/app.rb +0 -3
  66. data/samples/bats.rb +0 -3
  67. data/samples/camera.rb +0 -3
  68. data/samples/checker.rb +0 -3
  69. data/samples/fans.rb +0 -3
  70. data/samples/fps.rb +0 -3
  71. data/samples/grid.rb +0 -3
  72. data/samples/hello.rb +0 -3
  73. data/samples/image.rb +0 -3
  74. data/samples/key.rb +0 -3
  75. data/samples/layout.rb +0 -3
  76. data/samples/model.rb +0 -3
  77. data/samples/physics.rb +0 -3
  78. data/samples/reflexion/breakout.rb +0 -3
  79. data/samples/reflexion/hello.rb +0 -3
  80. data/samples/reflexion/jump_action.rb +0 -3
  81. data/samples/reflexion/noise.rb +0 -3
  82. data/samples/reflexion/paint.rb +0 -3
  83. data/samples/reflexion/physics.rb +0 -3
  84. data/samples/reflexion/pulse.rb +0 -3
  85. data/samples/repl.rb +0 -3
  86. data/samples/shader.rb +0 -3
  87. data/samples/shapes.rb +0 -3
  88. data/samples/text.rb +0 -3
  89. data/samples/tree.rb +0 -3
  90. data/samples/views.rb +0 -3
  91. data/samples/visuals.rb +0 -3
  92. data/src/body.cpp +14 -0
  93. data/src/body.h +4 -0
  94. data/src/event.cpp +27 -28
  95. data/src/view.cpp +89 -14
  96. data/src/window.cpp +4 -2
  97. data/test/helper.rb +0 -3
  98. data/test/test_application.rb +4 -3
  99. data/test/test_capture_event.rb +0 -3
  100. data/test/test_contact_event.rb +0 -3
  101. data/test/test_draw_event.rb +0 -3
  102. data/test/test_event.rb +1 -4
  103. data/test/test_focus_event.rb +0 -3
  104. data/test/test_frame_event.rb +0 -3
  105. data/test/test_has_frame.rb +0 -3
  106. data/test/test_key_event.rb +0 -3
  107. data/test/test_model.rb +0 -3
  108. data/test/test_model_owner.rb +0 -3
  109. data/test/test_pointer.rb +0 -3
  110. data/test/test_pointer_event.rb +0 -3
  111. data/test/test_reflex_init.rb +0 -3
  112. data/test/test_scroll_event.rb +0 -3
  113. data/test/test_selector.rb +0 -3
  114. data/test/test_shape.rb +0 -3
  115. data/test/test_style.rb +0 -3
  116. data/test/test_style_length.rb +0 -3
  117. data/test/test_timer_event.rb +0 -3
  118. data/test/test_update_event.rb +0 -3
  119. data/test/test_view.rb +37 -3
  120. data/test/test_wheel_event.rb +0 -3
  121. data/test/test_window.rb +4 -3
  122. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88e172697e7085255c08f0220a6592200fcbc4d5012229206366df618371de1a
4
- data.tar.gz: 0317cc066436f70cc785dc90606d6a4afa4b87a96828eb14ad33376af793a72b
3
+ metadata.gz: 54f32e8f80f2156f47dca7b252f81acf4bf0dc45aab45d7af8d3fb2418141a6c
4
+ data.tar.gz: 538889ab97d5fec6fc47a3a8a99bec4856d9a3e763ffcd2c438d81f1ca92422d
5
5
  SHA512:
6
- metadata.gz: 38882598ccd05a6706d786cde3f0cb9ebba761acc43d617750ee2ea7cfc934c9a8dab263484f376e5ff80d11c50d945712030b81755f8073478282cfbb72726e
7
- data.tar.gz: 116b7bb65329e97e56b85c36793d082d5cab42534a0eb3577c48af84db49f562c0a2b707b46c9a1223a20adea256a986e530f60d15062328ec17eef0fcaca437
6
+ metadata.gz: 7ad6c799423f7c91fd99ca2eb9821d817e78eda67a1de868cedf632d9c888abfb9a46ea46a2c78f532a47ff28a8cd008344c230cd7c8560e8ac796ba3cf2d415
7
+ data.tar.gz: caa79e8872fb1c7a6633c57d4316318ed6a3754a792c07179c3493c6b8767e7c740cf6261f87885cde24b63f4c066db36d69ed57a559769b9c6f7a44185d918c
@@ -404,6 +404,21 @@ VALUE get_angle(VALUE self)
404
404
  return value(THIS->angle());
405
405
  }
406
406
 
407
+ static
408
+ VALUE set_pivot(VALUE self, VALUE x, VALUE y, VALUE z)
409
+ {
410
+ CHECK;
411
+ THIS->set_pivot(to<float>(x), to<float>(y), to<float>(z));
412
+ return value(THIS->pivot());
413
+ }
414
+
415
+ static
416
+ VALUE get_pivot(VALUE self)
417
+ {
418
+ CHECK;
419
+ return value(THIS->pivot());
420
+ }
421
+
407
422
  static
408
423
  VALUE scroll_to(VALUE self)
409
424
  {
@@ -1060,6 +1075,8 @@ Init_reflex_view ()
1060
1075
  rb_define_method(cView, "fit_to_content", RUBY_METHOD_FUNC(fit_to_content), 0);
1061
1076
  rb_define_method(cView, "angle=", RUBY_METHOD_FUNC(set_angle), 1);
1062
1077
  rb_define_method(cView, "angle", RUBY_METHOD_FUNC(get_angle), 0);
1078
+ cView.define_private_method("set_pivot!", set_pivot);
1079
+ rb_define_method(cView, "pivot", RUBY_METHOD_FUNC(get_pivot), 0);
1063
1080
  rb_define_method(cView, "scroll_to", RUBY_METHOD_FUNC(scroll_to), -1);
1064
1081
  rb_define_method(cView, "scroll_by", RUBY_METHOD_FUNC(scroll_by), -1);
1065
1082
  rb_define_method(cView, "scroll", RUBY_METHOD_FUNC(get_scroll), 0);
data/ChangeLog.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # reflex ChangeLog
2
2
 
3
3
 
4
+ ## [v0.1.36] - 2023-05-08
5
+
6
+ - Add inspect()
7
+ - Add View#pivot accessor
8
+ - Awake view body on every pointer event
9
+ - Disable blocking event escalation
10
+ - Check is view valid before calling event handlers
11
+ - Fix pointer position for rotated view
12
+
13
+
4
14
  ## [v0.1.35] - 2023-04-30
5
15
 
6
16
  - Add View#on_zoom(e)
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- # -*- mode: ruby; coding: utf-8 -*-
1
+ # -*- mode: ruby -*-
2
2
 
3
3
 
4
4
  %w[../xot ../rucy ../rays .]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.35
1
+ 0.1.36
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  %w[../xot ../rucy ../rays .]
5
2
  .map {|s| File.expand_path "../../#{s}/lib", __dir__}
6
3
  .each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)}
data/ext/reflex/view.cpp CHANGED
@@ -445,6 +445,23 @@ RUCY_DEF0(get_angle)
445
445
  }
446
446
  RUCY_END
447
447
 
448
+ static
449
+ RUCY_DEF3(set_pivot, x, y, z)
450
+ {
451
+ CHECK;
452
+ THIS->set_pivot(to<float>(x), to<float>(y), to<float>(z));
453
+ return value(THIS->pivot());
454
+ }
455
+ RUCY_END
456
+
457
+ static
458
+ RUCY_DEF0(get_pivot)
459
+ {
460
+ CHECK;
461
+ return value(THIS->pivot());
462
+ }
463
+ RUCY_END
464
+
448
465
  static
449
466
  RUCY_DEFN(scroll_to)
450
467
  {
@@ -1176,6 +1193,8 @@ Init_reflex_view ()
1176
1193
  cView.define_method("fit_to_content", fit_to_content);
1177
1194
  cView.define_method("angle=", set_angle);
1178
1195
  cView.define_method("angle", get_angle);
1196
+ cView.define_private_method("set_pivot!", set_pivot);
1197
+ cView.define_method( "pivot", get_pivot);
1179
1198
  cView.define_method("scroll_to", scroll_to);
1180
1199
  cView.define_method("scroll_by", scroll_by);
1181
1200
  cView.define_method("scroll", get_scroll);
@@ -30,7 +30,7 @@ namespace Reflex
30
30
 
31
31
  ~Event ();
32
32
 
33
- void block ();
33
+ void block (bool parent = false);
34
34
 
35
35
  bool is_blocked () const;
36
36
 
@@ -217,6 +217,12 @@ namespace Reflex
217
217
 
218
218
  virtual float angle () const;
219
219
 
220
+ virtual void set_pivot (float x, float y, float z = 0);
221
+
222
+ virtual void set_pivot (const Point& pivot);
223
+
224
+ virtual const Point& pivot () const;
225
+
220
226
  virtual void scroll_to (coord x, coord y, coord z = 0);
221
227
 
222
228
  virtual void scroll_to (const Point& scroll);
@@ -1,9 +1,7 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/setter'
5
2
  require 'xot/universal_accessor'
6
3
  require 'xot/block_util'
4
+ require 'xot/inspectable'
7
5
  require 'reflex/ext'
8
6
  require 'reflex/helper'
9
7
 
@@ -14,6 +12,7 @@ module Reflex
14
12
  class Application
15
13
 
16
14
  include Xot::Setter
15
+ include Xot::Inspectable
17
16
  include Hookable
18
17
 
19
18
  universal_accessor :name
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/autoinit'
5
2
  require 'reflex/ext'
6
3
 
data/lib/reflex/bitmap.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/bitmap'
5
2
 
6
3
 
data/lib/reflex/bounds.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/bounds'
5
2
 
6
3
 
data/lib/reflex/button.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/view'
5
2
 
6
3
 
data/lib/reflex/camera.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/camera'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/ext'
5
2
  require 'reflex/view'
6
3
 
data/lib/reflex/color.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/color'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/color_space'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/const_symbol_accessor'
5
2
  require 'reflex/ext'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/block_util'
5
2
  require 'reflex/ext'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/universal_accessor'
5
2
  require 'reflex/shape'
6
3
 
data/lib/reflex/ext.rb CHANGED
@@ -1,5 +1,2 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/ext'
5
2
  require 'reflex/native'
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  module Reflex
5
2
 
6
3
 
data/lib/reflex/filter.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/universal_accessor'
5
2
  require 'reflex/ext'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/setter'
5
2
  require 'xot/universal_accessor'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/const_symbol_accessor'
5
2
  require 'reflex/ext'
6
3
 
data/lib/reflex/font.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/font'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/ext'
5
2
 
6
3
 
data/lib/reflex/helper.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/hookable'
5
2
  require 'xot/universal_accessor'
6
3
  require 'reflex/point'
data/lib/reflex/image.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/image'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/view'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/const_symbol_accessor'
5
2
  require 'reflex/ext'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/universal_accessor'
5
2
  require 'reflex/shape'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/view'
5
2
 
6
3
 
data/lib/reflex/matrix.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/matrix'
5
2
 
6
3
 
data/lib/reflex/model.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/invoker'
5
2
  require 'xot/setter'
6
3
  require 'xot/block_util'
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/model'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/model_owner'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/painter'
5
2
 
6
3
 
data/lib/reflex/point.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/point'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/bit_flag_accessor'
5
2
  require 'xot/const_symbol_accessor'
6
3
  require 'reflex/ext'
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'forwardable'
5
2
  require 'reflex/ext'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/polygon'
5
2
  require 'rays/polygon_line'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/universal_accessor'
5
2
  require 'reflex/shape'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/polyline'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/universal_accessor'
5
2
  require 'reflex/shape'
6
3
 
data/lib/reflex/reflex.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/ext'
5
2
  require 'reflex/window'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/ext'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/setter'
5
2
  require 'xot/block_util'
6
3
  require 'reflex/ext'
data/lib/reflex/shader.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'rays/shader'
5
2
 
6
3
 
data/lib/reflex/shape.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/setter'
5
2
  require 'xot/universal_accessor'
6
3
  require 'xot/block_util'
data/lib/reflex/style.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'xot/setter'
5
2
  require 'xot/universal_accessor'
6
3
  require 'xot/block_util'
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/ext'
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/image'
5
2
  require 'reflex/bitmap'
6
3
  require 'reflex/view'
data/lib/reflex/timer.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'forwardable'
5
2
  require 'reflex/ext'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'forwardable'
5
2
  require 'reflex/ext'
6
3
 
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/ext'
5
2
 
6
3
 
data/lib/reflex/view.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'forwardable'
5
2
  require 'xot/setter'
6
3
  require 'xot/bit_flag_accessor'
@@ -100,6 +97,14 @@ module Reflex
100
97
  to_enum :each_shape
101
98
  end
102
99
 
100
+ def pivot=(arg)
101
+ case arg
102
+ when Point then set_pivot! arg.x, arg.y, arg.z
103
+ when Array then set_pivot! arg[0], arg[1], arg[2] || 0
104
+ else raise ArgumentError
105
+ end
106
+ end
107
+
103
108
  def capturing?(*args)
104
109
  cap = capture
105
110
  args.all? {|type| cap.include? type}
@@ -114,7 +119,8 @@ module Reflex
114
119
  def on_contact_end(e)
115
120
  end
116
121
 
117
- universal_accessor :shape, :name, :selector, :frame, :angle, :zoom, :capture,
122
+ universal_accessor :shape, :name, :selector,
123
+ :frame, :angle, :pivot, :zoom, :capture,
118
124
  :density, :friction, :restitution,
119
125
  :linear_velocity, :angular_velocity, :gravity_scale,
120
126
  :gravity, :time_scale,
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/ext'
5
2
 
6
3
 
data/lib/reflex/window.rb CHANGED
@@ -1,10 +1,8 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'forwardable'
5
2
  require 'xot/setter'
6
3
  require 'xot/universal_accessor'
7
4
  require 'xot/block_util'
5
+ require 'xot/inspectable'
8
6
  require 'reflex/ext'
9
7
  require 'reflex/helper'
10
8
 
@@ -15,6 +13,7 @@ module Reflex
15
13
  class Window
16
14
 
17
15
  include Xot::Setter
16
+ include Xot::Inspectable
18
17
  include Hookable
19
18
  include HasFrame
20
19
 
data/lib/reflex.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflex/autoinit'
5
2
  require 'reflex/extension'
6
3
 
@@ -1,5 +1,2 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'reflexion'
5
2
  include Reflexion
data/lib/reflexion.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  require 'beeps'
5
2
  require 'rays'
6
3
  require 'reflex'
data/reflex.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- # -*- mode: ruby; coding: utf-8 -*-
1
+ # -*- mode: ruby -*-
2
2
 
3
3
 
4
4
  File.expand_path('lib', __dir__)
@@ -28,10 +28,10 @@ Gem::Specification.new do |s|
28
28
  s.platform = Gem::Platform::RUBY
29
29
  s.required_ruby_version = '>= 2.7.0'
30
30
 
31
- s.add_runtime_dependency 'xot', '~> 0.1.34'
32
- s.add_runtime_dependency 'rucy', '~> 0.1.34'
33
- s.add_runtime_dependency 'beeps', '~> 0.1.35'
34
- s.add_runtime_dependency 'rays', '~> 0.1.34'
31
+ s.add_runtime_dependency 'xot', '~> 0.1.35'
32
+ s.add_runtime_dependency 'rucy', '~> 0.1.35'
33
+ s.add_runtime_dependency 'beeps', '~> 0.1.36'
34
+ s.add_runtime_dependency 'rays', '~> 0.1.35'
35
35
 
36
36
  s.add_development_dependency 'rake'
37
37
  s.add_development_dependency 'test-unit'
data/samples/app.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  %w[xot rays reflex]
5
2
  .map {|s| File.expand_path "../../#{s}/lib", __dir__}
6
3
  .each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)}
data/samples/bats.rb CHANGED
@@ -1,6 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
-
4
1
  %w[xot rays reflex]
5
2
  .map {|s| File.expand_path "../../#{s}/lib", __dir__}
6
3
  .each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)}