glimmer-dsl-swt 4.18.4.4 → 4.18.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +33 -5057
- data/VERSION +1 -1
- data/docs/reference/GLIMMER_COMMAND.md +591 -0
- data/docs/reference/GLIMMER_CONFIGURATION.md +183 -0
- data/docs/reference/GLIMMER_GIRB.md +30 -0
- data/docs/reference/GLIMMER_GUI_DSL_SYNTAX.md +3251 -0
- data/docs/reference/GLIMMER_PACKAGING_AND_DISTRIBUTION.md +202 -0
- data/docs/reference/GLIMMER_SAMPLES.md +676 -0
- data/docs/reference/GLIMMER_STYLE_GUIDE.md +14 -0
- data/glimmer-dsl-swt.gemspec +9 -2
- data/lib/glimmer/dsl/swt/custom_widget_expression.rb +63 -63
- data/lib/glimmer/dsl/swt/exec_expression.rb +55 -55
- data/lib/glimmer/dsl/swt/observe_expression.rb +56 -53
- data/lib/glimmer/swt/custom/animation.rb +247 -243
- data/lib/glimmer/swt/custom/shape.rb +299 -297
- data/lib/glimmer/swt/display_proxy.rb +167 -166
- data/lib/glimmer/swt/widget_proxy.rb +964 -957
- data/lib/glimmer/ui/custom_widget.rb +332 -315
- data/samples/elaborate/tetris.rb +0 -13
- data/samples/elaborate/tetris/view/block.rb +1 -1
- data/samples/hello/hello_canvas_animation.rb +1 -1
- metadata +8 -1
data/samples/elaborate/tetris.rb
CHANGED
@@ -139,10 +139,6 @@ class Tetris
|
|
139
139
|
score_lane(game: game, block_size: BLOCK_SIZE) {
|
140
140
|
layout_data(:fill, :fill, true, true)
|
141
141
|
}
|
142
|
-
|
143
|
-
on_widget_disposed {
|
144
|
-
deregister_observers
|
145
|
-
}
|
146
142
|
}
|
147
143
|
}
|
148
144
|
|
@@ -206,15 +202,6 @@ class Tetris
|
|
206
202
|
message "Glimmer Tetris\n\nGlimmer DSL for SWT Sample\n\nCopyright (c) 2007-2021 Andy Maleh"
|
207
203
|
}.open
|
208
204
|
end
|
209
|
-
|
210
|
-
def deregister_observers
|
211
|
-
@show_high_scores_observer&.deregister
|
212
|
-
@game_over_observer&.deregister
|
213
|
-
@keyboard_down_listener&.deregister
|
214
|
-
@keyboard_up_listener&.deregister
|
215
|
-
@about_observer&.deregister
|
216
|
-
@quit_observer&.deregister
|
217
|
-
end
|
218
205
|
end
|
219
206
|
|
220
207
|
Tetris.launch
|
@@ -27,7 +27,7 @@ class Tetris
|
|
27
27
|
options :game_playfield, :block_size, :row, :column
|
28
28
|
|
29
29
|
body {
|
30
|
-
canvas
|
30
|
+
canvas {
|
31
31
|
background bind(game_playfield[row][column], :color)
|
32
32
|
polygon(0, 0, block_size, 0, block_size - 4, 4, 4, 4) {
|
33
33
|
background bind(game_playfield[row][column], :color) { |color_value|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer-dsl-swt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.18.4.
|
4
|
+
version: 4.18.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AndyMaleh
|
@@ -362,6 +362,13 @@ files:
|
|
362
362
|
- bin/girb
|
363
363
|
- bin/girb_runner.rb
|
364
364
|
- bin/glimmer
|
365
|
+
- docs/reference/GLIMMER_COMMAND.md
|
366
|
+
- docs/reference/GLIMMER_CONFIGURATION.md
|
367
|
+
- docs/reference/GLIMMER_GIRB.md
|
368
|
+
- docs/reference/GLIMMER_GUI_DSL_SYNTAX.md
|
369
|
+
- docs/reference/GLIMMER_PACKAGING_AND_DISTRIBUTION.md
|
370
|
+
- docs/reference/GLIMMER_SAMPLES.md
|
371
|
+
- docs/reference/GLIMMER_STYLE_GUIDE.md
|
365
372
|
- glimmer-dsl-swt.gemspec
|
366
373
|
- icons/scaffold_app.icns
|
367
374
|
- icons/scaffold_app.ico
|