glimmer-dsl-libui 0.4.16 → 0.4.20

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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +451 -68
  4. data/VERSION +1 -1
  5. data/examples/area_based_custom_controls.rb +278 -0
  6. data/examples/basic_table.rb +1 -1
  7. data/examples/cpu_percentage.rb +1 -1
  8. data/examples/custom_draw_text.rb +14 -7
  9. data/examples/custom_draw_text2.rb +15 -8
  10. data/examples/method_based_custom_keyword.rb +9 -9
  11. data/examples/method_based_custom_keyword2.rb +9 -9
  12. data/glimmer-dsl-libui.gemspec +0 -0
  13. data/lib/glimmer/dsl/libui/dsl.rb +1 -0
  14. data/lib/glimmer/dsl/libui/observe_expression.rb +1 -1
  15. data/lib/glimmer/dsl/libui/operation_expression.rb +47 -0
  16. data/lib/glimmer/dsl/libui/property_expression.rb +2 -2
  17. data/lib/glimmer/libui/control_proxy/box.rb +1 -0
  18. data/lib/glimmer/libui/control_proxy/column/background_color_column_proxy.rb +6 -0
  19. data/lib/glimmer/libui/control_proxy/column/button_column_proxy.rb +6 -0
  20. data/lib/glimmer/libui/control_proxy/column/checkbox_column_proxy.rb +6 -0
  21. data/lib/glimmer/libui/control_proxy/column/checkbox_text_color_column_proxy.rb +6 -0
  22. data/lib/glimmer/libui/control_proxy/column/checkbox_text_column_proxy.rb +6 -0
  23. data/lib/glimmer/libui/control_proxy/column/image_column_proxy.rb +6 -0
  24. data/lib/glimmer/libui/control_proxy/column/image_text_color_column_proxy.rb +6 -0
  25. data/lib/glimmer/libui/control_proxy/column/image_text_column_proxy.rb +6 -0
  26. data/lib/glimmer/libui/control_proxy/column/progress_bar_column_proxy.rb +6 -0
  27. data/lib/glimmer/libui/control_proxy/column/text_color_column_proxy.rb +6 -0
  28. data/lib/glimmer/libui/control_proxy/column/text_column_proxy.rb +6 -0
  29. data/lib/glimmer/libui/control_proxy/column.rb +7 -0
  30. data/lib/glimmer/libui/control_proxy/form_proxy.rb +1 -0
  31. data/lib/glimmer/libui/control_proxy/image_proxy.rb +1 -0
  32. data/lib/glimmer/libui/control_proxy/menu_item_proxy/quit_menu_item_proxy.rb +0 -1
  33. data/lib/glimmer/libui/control_proxy/path_proxy.rb +6 -4
  34. data/lib/glimmer/libui/control_proxy/table_proxy.rb +51 -28
  35. data/lib/glimmer/libui/control_proxy.rb +1 -0
  36. data/lib/glimmer/libui/data_bindable.rb +1 -1
  37. data/lib/glimmer/libui/shape/bezier.rb +20 -3
  38. data/lib/glimmer/libui/shape/line.rb +23 -3
  39. data/lib/glimmer-dsl-libui.rb +6 -0
  40. metadata +23 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8acbe91938a88381cab6203cca03222967f2cf9f8b9acce1b1cc9334b7dee8a6
4
- data.tar.gz: a769546a4a2ecf9075c6161f8d2705c7a86c85f463c4c297cb9c7f45c8e90d72
3
+ metadata.gz: 594b6127dd134d82d6f91dd4856aadb841ecceb04a8e9b34741d940212956997
4
+ data.tar.gz: efe2aa6e53ea80b58c1a1a12351c67e476e5ec3170aba680573d2f963680ccba
5
5
  SHA512:
6
- metadata.gz: 80b750032c8d4c6605f8843ca3ff8cafee74e53c2b1f048c22fe23a830924966441a5c7c8818cca64e0526e3fb26d83f3339ab2b7c7133fa82cc5f5b5be43034
7
- data.tar.gz: 81306b073aa159bbd8abc931032da52ac447d0626657bf7dfeff73b49083fb83a23de5e8fd4718dbea5c9209760af00e72cca29845a15735b7a9ff6370ae2340
6
+ metadata.gz: 8d21fba0daf5a73da1b7d31aac00d492508d92ceda522751a3908b7b3c794368286e7d971aa525322a08d91f48e11b71ad9c838393de65e12c4fc5f8133b5e6f
7
+ data.tar.gz: 2e448728ad41a976a169e5913e941cad523c5f897849ccacc82eb9d1ae2c75e002b8c9c5a933b9642d2845d263ed252a2e4826e29a0d18467b5e6bae63b51f8e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.4.20
4
+
5
+ - New examples/area_based_custom_controls.rb
6
+ - Fix issue with calling `destroy` multiple times on children of `vertical_box`/`horizontal_box`/`form` (worked only the first time before this fix)
7
+
8
+ ## 0.4.19
9
+
10
+ - Have `line` optionally support 4 arguments instead of 2 to use outside of a `figure`
11
+ - Have `bezier` optionally support 8 arguments instead of 6 to use outside of a `figure`
12
+ - Minor fix to `observe` keyword code (had the wrong DSL name)
13
+
14
+ ## 0.4.18
15
+
16
+ - Support setting `table` `cell_rows` after the `table` definition completed (e.g. `@table.cell_rows = data` after `table {}` curly braces closed already)
17
+ - Support adding to `table` `cell_rows` piecemeal after the `table` definition completed (e.g. `data.each { |row| @table.cell_rows << row }` after `table {}` curly braces closed already)
18
+ - Support notifying observers of control property changes when calling the `set_attribute` version of attribute writers, not just `attribute=`
19
+ - Hide background field in examples/custom_draw_text.rb on Windows since it is not supported there
20
+ - Fix issue with `quit_menu_item` click resulting in a stack overflow on Windows
21
+
22
+ ## 0.4.17
23
+
24
+ - Remove Windows workaround of always adding an extra row at the bottom of `table` as it is no longer necessary after adding a better workaround (on Windows, add & remove row just after constructing `table` to get rid of double-delete glitch)
25
+ - Improved parsing code of examples/cpu_percentage.rb for Windows to make it more resilient
26
+ - Upgrade to glimmer 2.5.3 to silently ignore frozen observables with `observe(*args, ignore_frozen: true)`
27
+ - Added equalizer gem dependency to properly provide equality methods for `Glimmer::LibUI::ControlProxy::ImageProxy`
28
+
3
29
  ## 0.4.16
4
30
 
5
31
  - Upgrade to glimmer 2.5.1