glimmer-dsl-libui 0.4.11 → 0.4.15

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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -0
  3. data/README.md +473 -57
  4. data/VERSION +1 -1
  5. data/examples/basic_image.rb +5 -3
  6. data/examples/basic_image2.rb +1 -3
  7. data/examples/basic_image3.rb +3 -3
  8. data/examples/basic_image4.rb +0 -3
  9. data/examples/basic_image5.rb +0 -2
  10. data/examples/basic_table_color.rb +104 -26
  11. data/examples/basic_table_color2.rb +2 -14
  12. data/examples/basic_table_color3.rb +37 -0
  13. data/examples/basic_table_image.rb +1 -1
  14. data/examples/basic_table_image2.rb +2 -14
  15. data/examples/basic_table_image3.rb +44 -0
  16. data/examples/basic_table_image_text.rb +1 -2
  17. data/examples/basic_table_image_text2.rb +2 -13
  18. data/examples/basic_table_image_text3.rb +44 -0
  19. data/examples/cpu_percentage.rb +1 -1
  20. data/examples/editable_column_table.rb +5 -0
  21. data/examples/form_table.rb +10 -4
  22. data/examples/form_table2.rb +12 -6
  23. data/examples/form_table3.rb +9 -3
  24. data/examples/form_table4.rb +9 -3
  25. data/examples/form_table5.rb +9 -3
  26. data/examples/meta_example.rb +3 -1
  27. data/glimmer-dsl-libui.gemspec +0 -0
  28. data/lib/glimmer/libui/attributed_string.rb +17 -8
  29. data/lib/glimmer/libui/control_proxy/area_proxy.rb +17 -17
  30. data/lib/glimmer/libui/control_proxy/box.rb +1 -0
  31. data/lib/glimmer/libui/control_proxy/column/background_color_column_proxy.rb +4 -0
  32. data/lib/glimmer/libui/control_proxy/column/button_column_proxy.rb +1 -29
  33. data/lib/glimmer/libui/control_proxy/form_proxy.rb +1 -0
  34. data/lib/glimmer/libui/control_proxy/image_proxy.rb +92 -10
  35. data/lib/glimmer/libui/control_proxy/menu_item_proxy/quit_menu_item_proxy.rb +18 -8
  36. data/lib/glimmer/libui/control_proxy/open_type_features_proxy.rb +11 -2
  37. data/lib/glimmer/libui/control_proxy/open_type_tag_proxy.rb +2 -0
  38. data/lib/glimmer/libui/control_proxy/path_proxy.rb +2 -0
  39. data/lib/glimmer/libui/control_proxy/table_proxy.rb +14 -12
  40. data/lib/glimmer/libui/control_proxy/text_proxy.rb +2 -0
  41. data/lib/glimmer/libui/control_proxy/window_proxy.rb +34 -35
  42. data/lib/glimmer/libui/control_proxy.rb +45 -9
  43. data/lib/glimmer/libui/shape.rb +1 -0
  44. data/lib/glimmer/libui.rb +2 -2
  45. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e70a639d4f55c50b7e18b15c8122969c08dd4e50c8517048d9167bb8e7f1a4e
4
- data.tar.gz: 7c774b5f04f58306113c89355201026585c6b5701dcad7c911fa541044423196
3
+ metadata.gz: 34cb8eb1da8d200b96163b3e2a0a607ed32dda75cb0df62088c5fcfaad2e2b18
4
+ data.tar.gz: 169bb5a5d620cc28606cdb03a7cd1e19544ae14d7c5d11dd2704cca869e3a2fe
5
5
  SHA512:
6
- metadata.gz: de3cca63789bd2d0818ad65350dc1e8ae79206c11d1f6f38b2bd4f7702f846b2ee160ca34456889d9a19dc958e5c768b3d6c8f0deb52f9b2c6205e1d719c3ef2
7
- data.tar.gz: 9fae92e29083d58ae527d548084f7da5187170aa3f0c66796649edffaf53ee7d7d0a948d586ea9a3310c34c5213125bbe5c6883f7f1c1fdc2e8dad1ec83ec96c
6
+ metadata.gz: b00b7729fcc0635faa743f9310d048a132d679d1550033302ee39b13dedd5d5f9e4ab79e5673b2cfceb2d887d87f33c24774a3b5d4f0b2bbfdfd8e366844acb2
7
+ data.tar.gz: c879ccd0d7f27b08080905669bff25543673e9117d44650dd31a57674596cf09aee3034a49b8af8c73f7976c1143ec0a8f7892a77252eb945318fafcc6f49da2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.4.15
4
+
5
+ - Support ability to attach multiple listeners on a control (e.g. multiple `on_changed {}` on `entry` or multiple `on_clicked` on `button`)
6
+ - Ensure clearing custom listeners on `#destroy` of a control
7
+ - Add `on_destroyed` as alias for `on_destroy` listener on `window`
8
+ - Avoid wasting time on `destroy` of a control (e.g. freeing resources) when the main window is getting destroyed, thus closing entire application instantaneously
9
+ - Have validation in examples/form_table.rb complain about nil values (no value entered)
10
+ - Fix Reset button in examples/meta_example.rb when on a version other than version 1
11
+ - Fix issue with calling `#destroy` on `open_type_features`
12
+
13
+ ## 0.4.14
14
+
15
+ - Support passing width or height alone to `image` keyword, calculating the other dimension automatically while preserving original aspect ratio
16
+ - Support passing x and y coordinates to `image` keyword as 2nd and 3rd arguments of 5 arguments (file, x, y, width, height)
17
+ - Support passing x, y, width, height to `image` keyword as options kwargs
18
+
19
+ ## 0.4.13
20
+
21
+ - Shorten height of examples/cpu_percentage.rb
22
+ - Optimize `table` `image` object by caching for multiple images sharing the same arguments
23
+
24
+ ## 0.4.12
25
+
26
+ - Support `table` data-binding to model rows when utilizing dual-columns or triple-columns (e.g. columns having color and/or a checkbox in addition to text)
27
+ - Support passing `table` `image`/`image_text` `cell_rows` `image` data as file path/image args directly (without using `image` keyword)
28
+ - Add examples/basic_table_color.rb version that data-binds to model rows instead of raw data
29
+ - Simplify examples/basic_table_color.rb to pass image data as file-path/width/height arguments directly
30
+ - Simplify examples/basic_table_image.rb to pass image data as file url directly
31
+ - Simplify examples/basic_table_image_text.rb to pass image data as file url directly
32
+ - Fix issue with hex color support for colors starting with `'#'`
33
+
3
34
  ## 0.4.11
4
35
 
5
36
  - Support `table` `cell_rows` explicit bidirectional data-binding (with `<=>` sign)