glimmer-dsl-libui 0.3.2 → 0.4.0

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/README.md +3859 -4006
  4. data/VERSION +1 -1
  5. data/bin/girb +0 -0
  6. data/examples/area_gallery.rb +19 -19
  7. data/examples/area_gallery2.rb +91 -89
  8. data/examples/area_gallery3.rb +19 -19
  9. data/examples/area_gallery4.rb +91 -89
  10. data/examples/basic_area.rb +1 -3
  11. data/examples/basic_area2.rb +1 -3
  12. data/examples/basic_area3.rb +17 -0
  13. data/examples/basic_area4.rb +19 -0
  14. data/examples/basic_scrolling_area.rb +79 -0
  15. data/examples/basic_transform.rb +3 -6
  16. data/examples/basic_transform2.rb +34 -0
  17. data/examples/color_the_circles.rb +1 -3
  18. data/examples/dynamic_area.rb +1 -3
  19. data/examples/dynamic_area2.rb +5 -7
  20. data/examples/form_table.rb +4 -0
  21. data/examples/grid.rb +4 -4
  22. data/examples/histogram.rb +4 -8
  23. data/examples/meta_example.rb +50 -10
  24. data/examples/midi_player.rb +2 -6
  25. data/examples/snake/model/game.rb +2 -2
  26. data/examples/snake.rb +9 -21
  27. data/examples/tetris.rb +15 -18
  28. data/examples/tic_tac_toe/board.rb +4 -2
  29. data/examples/tic_tac_toe.rb +4 -15
  30. data/examples/timer.rb +2 -6
  31. data/glimmer-dsl-libui.gemspec +0 -0
  32. data/lib/glimmer/dsl/libui/bind_expression.rb +36 -0
  33. data/lib/glimmer/dsl/libui/data_binding_expression.rb +47 -0
  34. data/lib/glimmer/dsl/libui/dsl.rb +3 -0
  35. data/lib/glimmer/dsl/libui/observe_expression.rb +35 -0
  36. data/lib/glimmer/dsl/libui/shape_expression.rb +6 -1
  37. data/lib/glimmer/dsl/libui/shine_data_binding_expression.rb +42 -0
  38. data/lib/glimmer/dsl/libui/string_expression.rb +4 -5
  39. data/lib/glimmer/libui/attributed_string.rb +19 -6
  40. data/lib/glimmer/libui/control_proxy/area_proxy/scrolling_area_proxy.rb +35 -0
  41. data/lib/glimmer/libui/control_proxy/window_proxy.rb +20 -0
  42. data/lib/glimmer/libui/shape.rb +50 -2
  43. metadata +15 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ed68bb2e66a4360184bea96a6fcfdfc4a13bdab5bb18861c536250b2e877a84
4
- data.tar.gz: 5d17577d31c8d1ad76f7e1c05acfbfb92c02ba70371a25907ebce882a177a2d0
3
+ metadata.gz: 7787d307fad4098e8f050a94c6477e9fca1f6cc8a2af4f2c16126a0a118dbc59
4
+ data.tar.gz: 0cc3d91a91ec96fa4bfecebef3829f4dc384f51aae7a81157385812d1aac2e8b
5
5
  SHA512:
6
- metadata.gz: 119b53a76cfe2c401087e8199b2625e527241911d04b6952ff161eae743e18dce8a7e4ea05ade7cb5ecb4753db8b48d7df7e5a52c09eb21e5eee186d1bccd833
7
- data.tar.gz: 5236ce0bd94c52a1d25ea60587221e6ec8fe352f8a3e7e6abe48980b430fd1002256dd1b85ece3c6c6300a77955156e82445be58767197747fa1b82073b080e4
6
+ metadata.gz: 89d886d203a00b83b7a1b5640dfb83f256b6514586b254bb4b00157c88df29acaa80b30194909f62858d6c79eba1782a7d4deda143d5406bd5048899f3d9835c
7
+ data.tar.gz: c94709151900aac23b7148422ee96d484413437b57a78aca7ece2948b6a48a3db3cca7c64827ade37037f9d4af27cce0e6f0bf0a2498358afd07a279595dec12
data/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.4.0
4
+
5
+ - Upgrade to LibUI 0.0.13
6
+ - Support general control/shape/attributed_string property unidirectional data-binding (with `<=` sign or `<=>`)
7
+ - Support `observe` DSL keyword for simple model observation outside of GUI (e.g. `observe(model, attribute) { do_something }` )
8
+ - Simplify examples/snake.rb with data-binding
9
+ - Simplify examples/tic_tac_toe.rb with data-binding
10
+ - Fix issue with `Shape#redraw` method calling `AreaProxy#auto_redraw` instead of `AreaProxy#redraw`
11
+
12
+ ## 0.3.5
13
+
14
+ - Fixed Area Gallery example (all versions) after a recent refactoring broke it
15
+
16
+ ## 0.3.4
17
+
18
+ - New examples/basic_scrolling_area.rb
19
+ - Smart defaults for `scrolling_area` control + convenience `width` and `height` attributes
20
+ - Simplify examples/basic_area.rb (all versions) by nesting shapes directly under `area`
21
+ - Support `#content {}` method in `figure` to be able to reopen a `figure`'s content to add more shapes in.
22
+
23
+ ## 0.3.3
24
+
25
+ - Support nesting shapes directly under `area` to represent paths having one shape, and nesting `fill`/`stroke` within the shapes (not `path`)
26
+ - Simplify examples/area_gallery.rb (all versions) by nesting shapes directly under `area`
27
+ - Simplify examples/basic_transform.rb by nesting shapes directly under `area` (and provide original version as 2nd version)
28
+ - Simplify examples/color_the_circles.rb by nesting shapes directly under `area`
29
+ - Simplify examples/dynamic_area.rb (all versions) by nesting shapes directly under `area`
30
+ - Simplify examples/histogram.rb (all versions) by nesting shapes directly under `area`
31
+ - Simplify examples/tetris.rb by nesting shapes directly under `area`
32
+ - Simplify examples/tic_tac_toe.rb by nesting shapes directly under `area`
33
+ - Simplify examples/snake.rb by nesting shapes directly under `area`
34
+ - Add a second tab to examples/meta_example.rb to fit more examples
35
+ - Upgrade glimmer to 2.5.0
36
+ - Fix issue in examples/tic_tac_toe.rb permitting change of symbol in marked area
37
+ - Update Style Guide and add an example for each bullet point
38
+
3
39
  ## 0.3.2
4
40
 
5
41
  - Fix issue with attempting to free `image` as an object from memory by mistake when used as a control (not an object for `table`)