glimmer-dsl-libui 0.4.1 → 0.4.5

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -1
  3. data/README.md +1628 -204
  4. data/VERSION +1 -1
  5. data/examples/basic_entry.rb +27 -24
  6. data/examples/basic_entry2.rb +31 -0
  7. data/examples/button_counter.rb +27 -0
  8. data/examples/dynamic_area.rb +77 -90
  9. data/examples/dynamic_area2.rb +14 -12
  10. data/examples/dynamic_area3.rb +90 -0
  11. data/examples/dynamic_area4.rb +95 -0
  12. data/examples/form.rb +42 -30
  13. data/examples/form2.rb +37 -0
  14. data/examples/form_table.rb +100 -87
  15. data/examples/form_table2.rb +93 -0
  16. data/examples/histogram.rb +98 -91
  17. data/examples/histogram2.rb +109 -0
  18. data/examples/login.rb +45 -39
  19. data/examples/login2.rb +55 -0
  20. data/examples/login3.rb +65 -0
  21. data/examples/login4.rb +61 -0
  22. data/examples/login5.rb +43 -0
  23. data/examples/meta_example.rb +10 -7
  24. data/examples/method_based_custom_keyword.rb +8 -15
  25. data/examples/method_based_custom_keyword2.rb +97 -0
  26. data/examples/snake.rb +1 -1
  27. data/examples/timer.rb +28 -31
  28. data/examples/timer2.rb +129 -0
  29. data/glimmer-dsl-libui.gemspec +0 -0
  30. data/lib/glimmer/dsl/libui/data_binding_expression.rb +4 -6
  31. data/lib/glimmer/libui/attributed_string.rb +3 -0
  32. data/lib/glimmer/libui/control_proxy/area_proxy.rb +52 -46
  33. data/lib/glimmer/libui/control_proxy/entry_proxy.rb +5 -0
  34. data/lib/glimmer/libui/control_proxy/image_proxy.rb +4 -5
  35. data/lib/glimmer/libui/control_proxy/multiline_entry_proxy.rb +5 -0
  36. data/lib/glimmer/libui/control_proxy/spinbox_proxy.rb +38 -0
  37. data/lib/glimmer/libui/control_proxy/table_proxy.rb +1 -1
  38. data/lib/glimmer/libui/control_proxy.rb +8 -1
  39. data/lib/glimmer/libui/data_bindable.rb +39 -0
  40. data/lib/glimmer/libui/shape.rb +7 -2
  41. metadata +17 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 979ea7d60d873acdbe09e6ae2ceb48318798fa41ed13bb3a6bc8dcb642933165
4
- data.tar.gz: 7cc05757477a0a42b85a20a6b298c147b5fba948f9e1eedd21701ab392a2d78a
3
+ metadata.gz: dcc9fbfe0fec2f6678f0515a8471c71fef28e7e8ae7a253bf1d8906aa7b69c11
4
+ data.tar.gz: 836911f22535571d796e759d20256e380e6dc3692cfd08ca13a62e053fea14ce
5
5
  SHA512:
6
- metadata.gz: 8feb498d6d9eae22df82c9c9e2b0bd12ef11eb1ec9e4f90ac94f7151be28225f7dce775b8352b25ef98e4bc36f2aedd56370a1265a313f0997161396034f16d0
7
- data.tar.gz: f76393bfebc577d9ce5e5add450ee70e337b67e7a63be24f5f91e4180d65c0d72c7236680f5843c446161710961ec51aa6520f037fcdcc0fc617d21ac182b850
6
+ metadata.gz: 5378fe7b1ee1c147705b5a97ff8414cdefcc22fb7720a388b9a8de6694ec128a4bbd2d4ba535b4c6bba5e7373f98ab32264f96bfd448deb7a00b6c07aefe4c42
7
+ data.tar.gz: cf83d73acf39d2be2bc16544b12466eefd38e76d37b595e9ff623c487a3296c27b1880560da7b067ea1c85b4fd28d1fd22dc9ea6a9ea1b5bc354536ccd38de0c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.4.5
4
+
5
+ - Support `spinbox` `value` bidirectional data-binding (with `<=>` sign)
6
+ - Improve examples/dynamic_area.rb with bidirectional data-binding for `spinbox` `value`
7
+ - Improve examples/histogram.rb with bidirectional data-binding for `spinbox` `value`
8
+ - Improve examples/timer.rb with bidirectional data-binding for `spinbox` `value`
9
+
10
+ ## 0.4.4
11
+
12
+ - Fix issue with data-binding shapes and attributed strings, which broke Snake and Tic Tac Toe examples
13
+
14
+ ## 0.4.3
15
+
16
+ - Support `entry` `text` bidirectional data-binding (with `<=>` sign)
17
+ - Support `search_entry` `text` property bidirectional data-binding (with `<=>` sign)
18
+ - Support `multiline_entry` `text` property bidirectional data-binding (with `<=>` sign)
19
+ - Support `non_wrapping_multiline_entry` `text` property bidirectional data-binding (with `<=>` sign)
20
+ - Improve examples/basic_entry.rb with bidirectional data-binding for `entry` `text`
21
+ - Improve examples/form.rb with bidirectional data-binding for `entry` `text`
22
+ - Improve examples/form_table.rb with bidirectional data-binding for `entry` `text`
23
+ - Improve examples/login.rb with bidirectional data-binding for `entry` `text`
24
+ - Improve examples/method_based_custom_keyword.rb with bidirectional data-binding for `entry` `text`
25
+ - Improve examples/meta_example.rb with bidirectional data-binding for `non_wrapping_multiline_entry` `text`
26
+
27
+ ## 0.4.2
28
+
29
+ - examples/button_counter.rb (takes advantage of unidirectional data-binding)
30
+ - Ensure that upon re-opening `#content {}` of `area`, `path`, shapes, `image`, `table`, `text`, and general controls, `post_add_content` initialization is prevented from running multiple times where inappropriate.
31
+ - Document `LibUI` API methods
32
+ - Fix issue with examples/meta_example.rb showing more versions in counts than available
33
+
3
34
  ## 0.4.1
4
35
 
5
36
  - Document `observe` keyword
@@ -14,7 +45,7 @@
14
45
  - Upgrade to LibUI 0.0.13
15
46
  - Support general control/shape/attributed_string property unidirectional data-binding (with `<=` sign or `<=>`)
16
47
  - Support `observe` DSL keyword for simple model observation outside of GUI (e.g. `observe(model, attribute) { do_something }` )
17
- - Simplify examples/snake.rb with data-binding
48
+ - Simplify examples/snake.rb with data-binding and make smaller (20x20) to be more challenging and fun
18
49
  - Simplify examples/tic_tac_toe.rb with data-binding
19
50
  - Fix issue with `Shape#redraw` method calling `AreaProxy#auto_redraw` instead of `AreaProxy#redraw`
20
51