reflexion 0.1.6 → 0.1.7

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.
Files changed (225) hide show
  1. checksums.yaml +7 -0
  2. data/.doc/ext/reflex/application.cpp +54 -39
  3. data/.doc/ext/reflex/capture_event.cpp +87 -0
  4. data/.doc/ext/reflex/draw_event.cpp +103 -0
  5. data/.doc/ext/reflex/event.cpp +73 -0
  6. data/.doc/ext/reflex/focus_event.cpp +98 -0
  7. data/.doc/ext/reflex/frame_event.cpp +133 -0
  8. data/.doc/ext/reflex/image_view.cpp +74 -0
  9. data/.doc/ext/reflex/key_event.cpp +124 -0
  10. data/.doc/ext/reflex/native.cpp +45 -6
  11. data/.doc/ext/reflex/pointer_event.cpp +181 -0
  12. data/.doc/ext/reflex/reflex.cpp +17 -41
  13. data/.doc/ext/reflex/scroll_event.cpp +141 -0
  14. data/.doc/ext/reflex/selector.cpp +135 -0
  15. data/.doc/ext/reflex/style.cpp +253 -0
  16. data/.doc/ext/reflex/style_length.cpp +133 -0
  17. data/.doc/ext/reflex/style_length2.cpp +149 -0
  18. data/.doc/ext/reflex/style_length4.cpp +192 -0
  19. data/.doc/ext/reflex/update_event.cpp +77 -0
  20. data/.doc/ext/reflex/view.cpp +408 -88
  21. data/.doc/ext/reflex/wheel_event.cpp +146 -0
  22. data/.doc/ext/reflex/window.cpp +95 -92
  23. data/Rakefile +6 -5
  24. data/VERSION +1 -1
  25. data/ext/reflex/application.cpp +67 -49
  26. data/ext/reflex/capture_event.cpp +92 -0
  27. data/ext/reflex/draw_event.cpp +110 -0
  28. data/ext/reflex/event.cpp +77 -0
  29. data/ext/reflex/extconf.rb +18 -68
  30. data/ext/reflex/focus_event.cpp +104 -0
  31. data/ext/reflex/frame_event.cpp +143 -0
  32. data/ext/reflex/image_view.cpp +77 -0
  33. data/ext/reflex/key_event.cpp +133 -0
  34. data/ext/reflex/native.cpp +45 -6
  35. data/ext/reflex/pointer_event.cpp +195 -0
  36. data/ext/reflex/reflex.cpp +21 -47
  37. data/ext/reflex/scroll_event.cpp +152 -0
  38. data/ext/reflex/selector.cpp +144 -0
  39. data/ext/reflex/style.cpp +277 -0
  40. data/ext/reflex/style_length.cpp +140 -0
  41. data/ext/reflex/style_length2.cpp +157 -0
  42. data/ext/reflex/style_length4.cpp +204 -0
  43. data/ext/reflex/update_event.cpp +81 -0
  44. data/ext/reflex/view.cpp +469 -114
  45. data/ext/reflex/wheel_event.cpp +158 -0
  46. data/ext/reflex/window.cpp +130 -123
  47. data/include/reflex/application.h +12 -7
  48. data/include/reflex/defs.h +13 -89
  49. data/include/reflex/event.h +260 -0
  50. data/include/reflex/exception.h +17 -11
  51. data/include/reflex/image_view.h +45 -0
  52. data/include/reflex/reflex.h +2 -6
  53. data/include/reflex/ruby/application.h +40 -13
  54. data/include/reflex/ruby/event.h +72 -0
  55. data/include/reflex/ruby/image_view.h +25 -0
  56. data/include/reflex/ruby/selector.h +27 -0
  57. data/include/reflex/ruby/style.h +27 -0
  58. data/include/reflex/ruby/style_length.h +37 -0
  59. data/include/reflex/ruby/view.h +193 -38
  60. data/include/reflex/ruby/window.h +123 -39
  61. data/include/reflex/ruby.h +3 -2
  62. data/include/reflex/selector.h +64 -0
  63. data/include/reflex/style.h +144 -0
  64. data/include/reflex/style_length.h +147 -0
  65. data/include/reflex/view.h +182 -19
  66. data/include/reflex/window.h +35 -19
  67. data/include/reflex.h +7 -0
  68. data/lib/reflex/application.rb +14 -5
  69. data/lib/reflex/arc_shape.rb +20 -0
  70. data/lib/reflex/button.rb +75 -0
  71. data/lib/reflex/capture_event.rb +37 -0
  72. data/lib/reflex/color.rb +13 -0
  73. data/lib/reflex/color_space.rb +13 -0
  74. data/lib/reflex/draw_event.rb +19 -0
  75. data/lib/reflex/ellipse_shape.rb +20 -0
  76. data/lib/reflex/ext.rb +1 -1
  77. data/lib/reflex/flags.rb +18 -0
  78. data/lib/reflex/focus_event.rb +38 -0
  79. data/lib/reflex/font.rb +13 -0
  80. data/lib/reflex/frame_event.rb +42 -0
  81. data/lib/reflex/helper.rb +87 -30
  82. data/lib/reflex/image_view.rb +25 -0
  83. data/lib/reflex/key_event.rb +38 -0
  84. data/lib/reflex/line_shape.rb +20 -0
  85. data/lib/reflex/list_view.rb +15 -0
  86. data/lib/reflex/model.rb +149 -0
  87. data/lib/reflex/model_owner.rb +57 -0
  88. data/lib/reflex/model_view.rb +22 -0
  89. data/lib/reflex/module.rb +11 -7
  90. data/lib/reflex/pointer_event.rb +85 -0
  91. data/lib/reflex/rect_shape.rb +20 -0
  92. data/lib/reflex/reflex.rb +13 -2
  93. data/lib/reflex/scroll_event.rb +19 -0
  94. data/lib/reflex/selector.rb +31 -0
  95. data/lib/reflex/shader.rb +13 -0
  96. data/lib/reflex/shape.rb +34 -0
  97. data/lib/reflex/style.rb +55 -0
  98. data/lib/reflex/style_length.rb +30 -0
  99. data/lib/reflex/style_length2.rb +34 -0
  100. data/lib/reflex/style_length4.rb +38 -0
  101. data/lib/reflex/text_view.rb +55 -0
  102. data/lib/reflex/update_event.rb +19 -0
  103. data/lib/reflex/view.rb +38 -4
  104. data/lib/reflex/wheel_event.rb +19 -0
  105. data/lib/reflex/window.rb +7 -5
  106. data/lib/reflex.rb +38 -1
  107. data/lib/reflexion/include.rb +5 -0
  108. data/lib/reflexion.rb +100 -0
  109. data/reflex.gemspec +3 -4
  110. data/samples/app.rb +13 -0
  111. data/samples/bats.rb +91 -0
  112. data/samples/checker.rb +36 -0
  113. data/{examples/ruby/shapes.rb → samples/fans.rb} +12 -16
  114. data/samples/fps.rb +46 -0
  115. data/samples/grid.rb +60 -0
  116. data/{examples/ruby → samples}/hello.rb +14 -16
  117. data/samples/image.rb +44 -0
  118. data/samples/ios/hello/hello/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  119. data/samples/ios/hello/hello/Images.xcassets/LaunchImage.launchimage/Contents.json +51 -0
  120. data/samples/ios/hello/hello/en.lproj/InfoPlist.strings +2 -0
  121. data/samples/ios/hello/hello/hello-Info.plist +47 -0
  122. data/samples/ios/hello/hello/hello-Prefix.pch +10 -0
  123. data/samples/ios/hello/hello/main.cpp +79 -0
  124. data/samples/ios/hello/hello.xcodeproj/project.pbxproj +725 -0
  125. data/{examples/ruby → samples}/key.rb +11 -14
  126. data/samples/layout.rb +89 -0
  127. data/samples/model.rb +86 -0
  128. data/samples/osx/hello/hello/Images.xcassets/AppIcon.appiconset/Contents.json +58 -0
  129. data/samples/osx/hello/hello/en.lproj/Credits.rtf +29 -0
  130. data/samples/osx/hello/hello/en.lproj/InfoPlist.strings +2 -0
  131. data/samples/osx/hello/hello/hello-Info.plist +32 -0
  132. data/samples/osx/hello/hello/hello-Prefix.pch +3 -0
  133. data/samples/osx/hello/hello/main.cpp +79 -0
  134. data/samples/osx/hello/hello.xcodeproj/project.pbxproj +725 -0
  135. data/samples/reflexion/hello.rb +24 -0
  136. data/samples/reflexion/paint.rb +40 -0
  137. data/samples/reflexion/pulse.rb +34 -0
  138. data/samples/repl.rb +69 -0
  139. data/samples/shader.rb +41 -0
  140. data/samples/shapes.rb +30 -0
  141. data/{examples/ruby → samples}/text.rb +7 -8
  142. data/samples/tree.rb +71 -0
  143. data/samples/views.rb +41 -0
  144. data/samples/visuals.rb +22 -0
  145. data/src/event.cpp +225 -0
  146. data/src/exception.cpp +24 -15
  147. data/src/image_view.cpp +70 -0
  148. data/src/ios/app_delegate.h +17 -0
  149. data/src/ios/app_delegate.mm +120 -0
  150. data/src/ios/application.mm +116 -0
  151. data/src/{cocoa/applicationdata.h → ios/application_data.h} +6 -6
  152. data/src/ios/event.h +26 -0
  153. data/src/ios/event.mm +31 -0
  154. data/src/ios/native_window.h +37 -0
  155. data/src/ios/native_window.mm +220 -0
  156. data/src/ios/opengl_view.h +13 -0
  157. data/src/ios/opengl_view.mm +131 -0
  158. data/src/{cocoa → ios}/reflex.mm +8 -12
  159. data/src/ios/window.mm +303 -0
  160. data/src/ios/window_data.h +75 -0
  161. data/src/osx/app_delegate.h +17 -0
  162. data/src/{cocoa/cocoaapplication.mm → osx/app_delegate.mm} +90 -48
  163. data/src/osx/application.mm +132 -0
  164. data/src/osx/application_data.h +45 -0
  165. data/src/osx/event.h +42 -0
  166. data/src/osx/event.mm +112 -0
  167. data/src/osx/native_window.h +26 -0
  168. data/src/osx/native_window.mm +322 -0
  169. data/src/{cocoa/openglview.h → osx/opengl_view.h} +0 -4
  170. data/src/{cocoa/openglview.mm → osx/opengl_view.mm} +66 -23
  171. data/src/osx/reflex.mm +50 -0
  172. data/src/osx/window.mm +308 -0
  173. data/src/osx/window_data.h +75 -0
  174. data/src/selector.cpp +121 -0
  175. data/src/style.cpp +576 -0
  176. data/src/style_length.cpp +341 -0
  177. data/src/view.cpp +1228 -129
  178. data/src/win32/application.cpp +1 -1
  179. data/src/window.cpp +54 -26
  180. data/test/helper.rb +8 -4
  181. data/test/test_capture_event.rb +41 -0
  182. data/test/test_event.rb +20 -0
  183. data/test/test_has_frame.rb +45 -0
  184. data/test/test_model.rb +9 -0
  185. data/test/test_model_owner.rb +9 -0
  186. data/test/test_selector.rb +75 -0
  187. data/test/test_style.rb +70 -0
  188. data/test/test_style_length.rb +38 -0
  189. data/test/test_style_length2.rb +50 -0
  190. data/test/test_style_length4.rb +56 -0
  191. data/test/test_view.rb +97 -23
  192. data/test/test_window.rb +54 -46
  193. metadata +205 -84
  194. data/.doc/ext/reflex/defs.cpp +0 -8
  195. data/.doc/ext/reflex/key.cpp +0 -122
  196. data/.doc/ext/reflex/points.cpp +0 -151
  197. data/.gitignore +0 -14
  198. data/ChangeLog +0 -8
  199. data/examples/hello/.gitignore +0 -2
  200. data/examples/hello/Rakefile +0 -41
  201. data/examples/hello/main.cpp +0 -18
  202. data/examples/ruby/app.rb +0 -13
  203. data/examples/ruby/checker.rb +0 -41
  204. data/examples/ruby/fps.rb +0 -49
  205. data/examples/ruby/grid.rb +0 -65
  206. data/examples/ruby/views.rb +0 -88
  207. data/examples/ruby/visuals.rb +0 -27
  208. data/ext/reflex/defs.cpp +0 -8
  209. data/ext/reflex/key.cpp +0 -129
  210. data/ext/reflex/points.cpp +0 -161
  211. data/include/reflex/ruby/key.h +0 -39
  212. data/include/reflex/ruby/points.h +0 -39
  213. data/lib/reflex/visuals/string.rb +0 -53
  214. data/src/cocoa/application.mm +0 -101
  215. data/src/cocoa/cocoaapplication.h +0 -21
  216. data/src/cocoa/cocoawindow.h +0 -46
  217. data/src/cocoa/cocoawindow.mm +0 -230
  218. data/src/cocoa/defs.h +0 -34
  219. data/src/cocoa/defs.mm +0 -87
  220. data/src/cocoa/window.mm +0 -148
  221. data/src/cocoa/windowdata.h +0 -56
  222. data/src/defs.cpp +0 -47
  223. data/src/helper.h +0 -12
  224. data/src/reflex.cpp +0 -43
  225. /data/{README → README.md} +0 -0
metadata CHANGED
@@ -1,94 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reflexion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
5
- prerelease:
4
+ version: 0.1.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - snori
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-06 00:00:00.000000000 Z
11
+ date: 2014-08-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: xot
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rucy
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rays
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: gemcutter
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description: This library helps you to develop interactive graphical user interface.
@@ -97,92 +86,192 @@ executables: []
97
86
  extensions:
98
87
  - Rakefile
99
88
  extra_rdoc_files:
100
- - README
101
- - .doc/ext/reflex/application.cpp
102
- - .doc/ext/reflex/defs.cpp
103
- - .doc/ext/reflex/key.cpp
104
- - .doc/ext/reflex/native.cpp
105
- - .doc/ext/reflex/points.cpp
106
- - .doc/ext/reflex/reflex.cpp
107
- - .doc/ext/reflex/view.cpp
108
- - .doc/ext/reflex/window.cpp
89
+ - ".doc/ext/reflex/application.cpp"
90
+ - ".doc/ext/reflex/capture_event.cpp"
91
+ - ".doc/ext/reflex/draw_event.cpp"
92
+ - ".doc/ext/reflex/event.cpp"
93
+ - ".doc/ext/reflex/focus_event.cpp"
94
+ - ".doc/ext/reflex/frame_event.cpp"
95
+ - ".doc/ext/reflex/image_view.cpp"
96
+ - ".doc/ext/reflex/key_event.cpp"
97
+ - ".doc/ext/reflex/native.cpp"
98
+ - ".doc/ext/reflex/pointer_event.cpp"
99
+ - ".doc/ext/reflex/reflex.cpp"
100
+ - ".doc/ext/reflex/scroll_event.cpp"
101
+ - ".doc/ext/reflex/selector.cpp"
102
+ - ".doc/ext/reflex/style.cpp"
103
+ - ".doc/ext/reflex/style_length.cpp"
104
+ - ".doc/ext/reflex/style_length2.cpp"
105
+ - ".doc/ext/reflex/style_length4.cpp"
106
+ - ".doc/ext/reflex/update_event.cpp"
107
+ - ".doc/ext/reflex/view.cpp"
108
+ - ".doc/ext/reflex/wheel_event.cpp"
109
+ - ".doc/ext/reflex/window.cpp"
109
110
  files:
110
- - .gitignore
111
- - ChangeLog
112
- - README
111
+ - README.md
113
112
  - Rakefile
114
113
  - VERSION
115
- - examples/hello/.gitignore
116
- - examples/hello/Rakefile
117
- - examples/hello/main.cpp
118
- - examples/ruby/app.rb
119
- - examples/ruby/checker.rb
120
- - examples/ruby/fps.rb
121
- - examples/ruby/grid.rb
122
- - examples/ruby/hello.rb
123
- - examples/ruby/key.rb
124
- - examples/ruby/shapes.rb
125
- - examples/ruby/text.rb
126
- - examples/ruby/views.rb
127
- - examples/ruby/visuals.rb
128
114
  - ext/reflex/application.cpp
129
- - ext/reflex/defs.cpp
115
+ - ext/reflex/capture_event.cpp
130
116
  - ext/reflex/defs.h
117
+ - ext/reflex/draw_event.cpp
118
+ - ext/reflex/event.cpp
131
119
  - ext/reflex/extconf.rb
132
- - ext/reflex/key.cpp
120
+ - ext/reflex/focus_event.cpp
121
+ - ext/reflex/frame_event.cpp
122
+ - ext/reflex/image_view.cpp
123
+ - ext/reflex/key_event.cpp
133
124
  - ext/reflex/native.cpp
134
- - ext/reflex/points.cpp
125
+ - ext/reflex/pointer_event.cpp
135
126
  - ext/reflex/reflex.cpp
127
+ - ext/reflex/scroll_event.cpp
128
+ - ext/reflex/selector.cpp
129
+ - ext/reflex/style.cpp
130
+ - ext/reflex/style_length.cpp
131
+ - ext/reflex/style_length2.cpp
132
+ - ext/reflex/style_length4.cpp
133
+ - ext/reflex/update_event.cpp
136
134
  - ext/reflex/view.cpp
135
+ - ext/reflex/wheel_event.cpp
137
136
  - ext/reflex/window.cpp
138
137
  - include/reflex.h
139
138
  - include/reflex/application.h
140
139
  - include/reflex/defs.h
140
+ - include/reflex/event.h
141
141
  - include/reflex/exception.h
142
+ - include/reflex/image_view.h
142
143
  - include/reflex/reflex.h
143
144
  - include/reflex/ruby.h
144
145
  - include/reflex/ruby/application.h
145
- - include/reflex/ruby/key.h
146
- - include/reflex/ruby/points.h
146
+ - include/reflex/ruby/event.h
147
+ - include/reflex/ruby/image_view.h
147
148
  - include/reflex/ruby/reflex.h
149
+ - include/reflex/ruby/selector.h
150
+ - include/reflex/ruby/style.h
151
+ - include/reflex/ruby/style_length.h
148
152
  - include/reflex/ruby/view.h
149
153
  - include/reflex/ruby/window.h
154
+ - include/reflex/selector.h
155
+ - include/reflex/style.h
156
+ - include/reflex/style_length.h
150
157
  - include/reflex/view.h
151
158
  - include/reflex/window.h
152
159
  - lib/reflex.rb
153
160
  - lib/reflex/application.rb
161
+ - lib/reflex/arc_shape.rb
154
162
  - lib/reflex/autoinit.rb
155
163
  - lib/reflex/bitmap.rb
156
164
  - lib/reflex/bounds.rb
165
+ - lib/reflex/button.rb
166
+ - lib/reflex/capture_event.rb
167
+ - lib/reflex/color.rb
168
+ - lib/reflex/color_space.rb
169
+ - lib/reflex/draw_event.rb
170
+ - lib/reflex/ellipse_shape.rb
157
171
  - lib/reflex/ext.rb
172
+ - lib/reflex/flags.rb
173
+ - lib/reflex/focus_event.rb
174
+ - lib/reflex/font.rb
175
+ - lib/reflex/frame_event.rb
158
176
  - lib/reflex/helper.rb
159
177
  - lib/reflex/image.rb
178
+ - lib/reflex/image_view.rb
179
+ - lib/reflex/key_event.rb
180
+ - lib/reflex/line_shape.rb
181
+ - lib/reflex/list_view.rb
182
+ - lib/reflex/model.rb
183
+ - lib/reflex/model_owner.rb
184
+ - lib/reflex/model_view.rb
160
185
  - lib/reflex/module.rb
161
186
  - lib/reflex/painter.rb
162
187
  - lib/reflex/point.rb
188
+ - lib/reflex/pointer_event.rb
189
+ - lib/reflex/rect_shape.rb
163
190
  - lib/reflex/reflex.rb
191
+ - lib/reflex/scroll_event.rb
192
+ - lib/reflex/selector.rb
193
+ - lib/reflex/shader.rb
194
+ - lib/reflex/shape.rb
195
+ - lib/reflex/style.rb
196
+ - lib/reflex/style_length.rb
197
+ - lib/reflex/style_length2.rb
198
+ - lib/reflex/style_length4.rb
199
+ - lib/reflex/text_view.rb
164
200
  - lib/reflex/texture.rb
201
+ - lib/reflex/update_event.rb
165
202
  - lib/reflex/view.rb
166
- - lib/reflex/visuals/string.rb
203
+ - lib/reflex/wheel_event.rb
167
204
  - lib/reflex/window.rb
205
+ - lib/reflexion.rb
206
+ - lib/reflexion/include.rb
168
207
  - reflex.gemspec
169
- - src/cocoa/application.mm
170
- - src/cocoa/applicationdata.h
171
- - src/cocoa/cocoaapplication.h
172
- - src/cocoa/cocoaapplication.mm
173
- - src/cocoa/cocoawindow.h
174
- - src/cocoa/cocoawindow.mm
175
- - src/cocoa/defs.h
176
- - src/cocoa/defs.mm
177
- - src/cocoa/openglview.h
178
- - src/cocoa/openglview.mm
179
- - src/cocoa/reflex.mm
180
- - src/cocoa/window.mm
181
- - src/cocoa/windowdata.h
182
- - src/defs.cpp
208
+ - samples/app.rb
209
+ - samples/bats.rb
210
+ - samples/checker.rb
211
+ - samples/fans.rb
212
+ - samples/fps.rb
213
+ - samples/grid.rb
214
+ - samples/hello.rb
215
+ - samples/image.rb
216
+ - samples/ios/hello/hello.xcodeproj/project.pbxproj
217
+ - samples/ios/hello/hello/Images.xcassets/AppIcon.appiconset/Contents.json
218
+ - samples/ios/hello/hello/Images.xcassets/LaunchImage.launchimage/Contents.json
219
+ - samples/ios/hello/hello/en.lproj/InfoPlist.strings
220
+ - samples/ios/hello/hello/hello-Info.plist
221
+ - samples/ios/hello/hello/hello-Prefix.pch
222
+ - samples/ios/hello/hello/main.cpp
223
+ - samples/key.rb
224
+ - samples/layout.rb
225
+ - samples/model.rb
226
+ - samples/osx/hello/hello.xcodeproj/project.pbxproj
227
+ - samples/osx/hello/hello/Images.xcassets/AppIcon.appiconset/Contents.json
228
+ - samples/osx/hello/hello/en.lproj/Credits.rtf
229
+ - samples/osx/hello/hello/en.lproj/InfoPlist.strings
230
+ - samples/osx/hello/hello/hello-Info.plist
231
+ - samples/osx/hello/hello/hello-Prefix.pch
232
+ - samples/osx/hello/hello/main.cpp
233
+ - samples/reflexion/hello.rb
234
+ - samples/reflexion/paint.rb
235
+ - samples/reflexion/pulse.rb
236
+ - samples/repl.rb
237
+ - samples/shader.rb
238
+ - samples/shapes.rb
239
+ - samples/text.rb
240
+ - samples/tree.rb
241
+ - samples/views.rb
242
+ - samples/visuals.rb
243
+ - src/event.cpp
183
244
  - src/exception.cpp
184
- - src/helper.h
185
- - src/reflex.cpp
245
+ - src/image_view.cpp
246
+ - src/ios/app_delegate.h
247
+ - src/ios/app_delegate.mm
248
+ - src/ios/application.mm
249
+ - src/ios/application_data.h
250
+ - src/ios/event.h
251
+ - src/ios/event.mm
252
+ - src/ios/native_window.h
253
+ - src/ios/native_window.mm
254
+ - src/ios/opengl_view.h
255
+ - src/ios/opengl_view.mm
256
+ - src/ios/reflex.mm
257
+ - src/ios/window.mm
258
+ - src/ios/window_data.h
259
+ - src/osx/app_delegate.h
260
+ - src/osx/app_delegate.mm
261
+ - src/osx/application.mm
262
+ - src/osx/application_data.h
263
+ - src/osx/event.h
264
+ - src/osx/event.mm
265
+ - src/osx/native_window.h
266
+ - src/osx/native_window.mm
267
+ - src/osx/opengl_view.h
268
+ - src/osx/opengl_view.mm
269
+ - src/osx/reflex.mm
270
+ - src/osx/window.mm
271
+ - src/osx/window_data.h
272
+ - src/selector.cpp
273
+ - src/style.cpp
274
+ - src/style_length.cpp
186
275
  - src/view.cpp
187
276
  - src/win32/application.cpp
188
277
  - src/win32/defs.cpp
@@ -194,44 +283,76 @@ files:
194
283
  - src/window.cpp
195
284
  - test/helper.rb
196
285
  - test/test_application.rb
286
+ - test/test_capture_event.rb
287
+ - test/test_event.rb
288
+ - test/test_has_frame.rb
289
+ - test/test_model.rb
290
+ - test/test_model_owner.rb
197
291
  - test/test_reflex.rb
292
+ - test/test_selector.rb
293
+ - test/test_style.rb
294
+ - test/test_style_length.rb
295
+ - test/test_style_length2.rb
296
+ - test/test_style_length4.rb
198
297
  - test/test_view.rb
199
298
  - test/test_window.rb
200
- - .doc/ext/reflex/application.cpp
201
- - .doc/ext/reflex/defs.cpp
202
- - .doc/ext/reflex/key.cpp
203
- - .doc/ext/reflex/native.cpp
204
- - .doc/ext/reflex/points.cpp
205
- - .doc/ext/reflex/reflex.cpp
206
- - .doc/ext/reflex/view.cpp
207
- - .doc/ext/reflex/window.cpp
299
+ - ".doc/ext/reflex/application.cpp"
300
+ - ".doc/ext/reflex/capture_event.cpp"
301
+ - ".doc/ext/reflex/draw_event.cpp"
302
+ - ".doc/ext/reflex/event.cpp"
303
+ - ".doc/ext/reflex/focus_event.cpp"
304
+ - ".doc/ext/reflex/frame_event.cpp"
305
+ - ".doc/ext/reflex/image_view.cpp"
306
+ - ".doc/ext/reflex/key_event.cpp"
307
+ - ".doc/ext/reflex/native.cpp"
308
+ - ".doc/ext/reflex/pointer_event.cpp"
309
+ - ".doc/ext/reflex/reflex.cpp"
310
+ - ".doc/ext/reflex/scroll_event.cpp"
311
+ - ".doc/ext/reflex/selector.cpp"
312
+ - ".doc/ext/reflex/style.cpp"
313
+ - ".doc/ext/reflex/style_length.cpp"
314
+ - ".doc/ext/reflex/style_length2.cpp"
315
+ - ".doc/ext/reflex/style_length4.cpp"
316
+ - ".doc/ext/reflex/update_event.cpp"
317
+ - ".doc/ext/reflex/view.cpp"
318
+ - ".doc/ext/reflex/wheel_event.cpp"
319
+ - ".doc/ext/reflex/window.cpp"
208
320
  homepage: http://github.com/xord/reflex/wiki
209
321
  licenses: []
322
+ metadata: {}
210
323
  post_install_message:
211
324
  rdoc_options: []
212
325
  require_paths:
213
326
  - lib
214
327
  required_ruby_version: !ruby/object:Gem::Requirement
215
- none: false
216
328
  requirements:
217
- - - ! '>='
329
+ - - ">="
218
330
  - !ruby/object:Gem::Version
219
331
  version: 1.9.0
220
332
  required_rubygems_version: !ruby/object:Gem::Requirement
221
- none: false
222
333
  requirements:
223
- - - ! '>='
334
+ - - ">="
224
335
  - !ruby/object:Gem::Version
225
336
  version: '0'
226
337
  requirements: []
227
338
  rubyforge_project:
228
- rubygems_version: 1.8.24
339
+ rubygems_version: 2.0.3
229
340
  signing_key:
230
- specification_version: 3
341
+ specification_version: 4
231
342
  summary: A Graphical User Interface Tool Kit.
232
343
  test_files:
233
344
  - test/helper.rb
234
345
  - test/test_application.rb
346
+ - test/test_capture_event.rb
347
+ - test/test_event.rb
348
+ - test/test_has_frame.rb
349
+ - test/test_model.rb
350
+ - test/test_model_owner.rb
235
351
  - test/test_reflex.rb
352
+ - test/test_selector.rb
353
+ - test/test_style.rb
354
+ - test/test_style_length.rb
355
+ - test/test_style_length2.rb
356
+ - test/test_style_length4.rb
236
357
  - test/test_view.rb
237
358
  - test/test_window.rb
@@ -1,8 +0,0 @@
1
- #include "defs.h"
2
-
3
-
4
- #include <rucy/value.h>
5
- #include <reflex/defs.h>
6
-
7
-
8
- using namespace Rucy;
@@ -1,122 +0,0 @@
1
- #include "reflex/ruby/key.h"
2
-
3
-
4
- #include <rucy.h>
5
- #include "defs.h"
6
-
7
-
8
- using namespace Rucy;
9
-
10
-
11
- static Class cKey;
12
-
13
-
14
- namespace Reflex
15
- {
16
-
17
-
18
- Class
19
- key_class ()
20
- {
21
- return cKey;
22
- }
23
-
24
-
25
- }// Reflex
26
-
27
-
28
- namespace Rucy
29
- {
30
-
31
-
32
- Value
33
- value (const Reflex::Key& key)
34
- {
35
- return new_type(cKey, new Reflex::Key(key));
36
- }
37
-
38
-
39
- }// Rucy
40
-
41
-
42
- #define THIS to<Reflex::Key*>(self)
43
-
44
- #define CHECK RUCY_CHECK_OBJ(self, Reflex::Key, cKey)
45
-
46
-
47
- static
48
- VALUE alloc(VALUE klass)
49
- {
50
- return new_type<Reflex::Key>(klass);
51
- }
52
-
53
- static
54
- VALUE initialize(VALUE self)
55
- {
56
- RUCY_CHECK_OBJ(self, Reflex::Key, cKey);
57
- if (argc < 0 || 4 < argc)
58
- argument_error("Key#initialize", argc, 0, 1, 2);
59
-
60
- THIS->chars = (argc >= 1) ? argv[0].c_str() : NULL;
61
- THIS->code = (argc >= 2) ? to<int>(argv[1]) : Reflex::KEY_NONE;
62
- THIS->repeat = (argc >= 3) ? to<int>(argv[2]) : 1;
63
- THIS->modifiers = (argc >= 4) ? to<uint>(argv[3]) : (uint) Reflex::MOD_NONE;
64
-
65
- return self;
66
- }
67
-
68
- static
69
- VALUE initialize_copy(VALUE self, VALUE obj)
70
- {
71
- RUCY_CHECK_OBJ(self, Reflex::Key, cKey);
72
-
73
- Reflex::Key* key = to<Reflex::Key*>(obj);
74
- if (!key) argument_error();
75
-
76
- *THIS = *key;
77
- return self;
78
- }
79
-
80
- static
81
- VALUE chars(VALUE self)
82
- {
83
- CHECK;
84
- return value(THIS->chars.c_str());
85
- }
86
-
87
- static
88
- VALUE code(VALUE self)
89
- {
90
- CHECK;
91
- return value(THIS->code);
92
- }
93
-
94
- static
95
- VALUE repeat(VALUE self)
96
- {
97
- CHECK;
98
- return value(THIS->repeat);
99
- }
100
-
101
- static
102
- VALUE modifiers(VALUE self)
103
- {
104
- CHECK;
105
- return value(THIS->modifiers);
106
- }
107
-
108
-
109
- void
110
- Init_key ()
111
- {
112
- Module mReflex = rb_define_module("Reflex");
113
-
114
- cKey = rb_define_class_under(mReflex, "Key", rb_cObject);
115
- rb_define_alloc_func(cKey, alloc);
116
- rb_define_private_method(cKey, "initialize", RUBY_METHOD_FUNC(initialize), -1);
117
- rb_define_private_method(cKey, "initialize_copy", RUBY_METHOD_FUNC(initialize_copy), 1);
118
- rb_define_method(cKey, "chars", RUBY_METHOD_FUNC(chars), 0);
119
- rb_define_method(cKey, "code", RUBY_METHOD_FUNC(code), 0);
120
- rb_define_method(cKey, "repeat", RUBY_METHOD_FUNC(repeat), 0);
121
- rb_define_method(cKey, "modifiers", RUBY_METHOD_FUNC(modifiers), 0);
122
- }