glimmer-dsl-libui 0.4.10 → 0.4.14

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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +1071 -219
  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_button.rb +54 -30
  11. data/examples/basic_table_button2.rb +34 -0
  12. data/examples/basic_table_color.rb +104 -26
  13. data/examples/basic_table_color2.rb +2 -14
  14. data/examples/basic_table_color3.rb +37 -0
  15. data/examples/basic_table_image.rb +1 -1
  16. data/examples/basic_table_image2.rb +2 -14
  17. data/examples/basic_table_image3.rb +44 -0
  18. data/examples/basic_table_image_text.rb +1 -2
  19. data/examples/basic_table_image_text2.rb +2 -13
  20. data/examples/basic_table_image_text3.rb +44 -0
  21. data/examples/cpu_percentage.rb +1 -1
  22. data/examples/editable_table.rb +1 -1
  23. data/examples/form_table.rb +21 -17
  24. data/examples/form_table2.rb +104 -85
  25. data/examples/form_table3.rb +113 -0
  26. data/examples/form_table4.rb +110 -0
  27. data/examples/form_table5.rb +94 -0
  28. data/examples/meta_example.rb +6 -4
  29. data/glimmer-dsl-libui.gemspec +0 -0
  30. data/lib/glimmer/dsl/libui/control_expression.rb +2 -1
  31. data/lib/glimmer/dsl/libui/shape_expression.rb +2 -2
  32. data/lib/glimmer/dsl/libui/string_expression.rb +2 -1
  33. data/lib/glimmer/libui/attributed_string.rb +3 -2
  34. data/lib/glimmer/libui/control_proxy/column/background_color_column_proxy.rb +4 -0
  35. data/lib/glimmer/libui/control_proxy/image_proxy.rb +90 -10
  36. data/lib/glimmer/libui/control_proxy/table_proxy.rb +95 -29
  37. data/lib/glimmer/libui/control_proxy.rb +4 -2
  38. data/lib/glimmer/libui/data_bindable.rb +8 -3
  39. data/lib/glimmer/libui/shape.rb +3 -2
  40. data/lib/glimmer/libui.rb +2 -2
  41. data/lib/glimmer-dsl-libui.rb +1 -0
  42. metadata +9 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3bdea12bc1f9ff1798491a5637c598e0e1e9448d8cb3e5e2cd194b77ad8d95a
4
- data.tar.gz: f704324045b58a3372d5ffe7893642fa953ac5f00edded4171b96272ec0c792b
3
+ metadata.gz: d51961908ec1315a42fe183bc79cbe86bc8d86e2dea9ac9a35d2dfaefaf3912d
4
+ data.tar.gz: af6c03eb6d451816d32242c7f7d99ce3ed28755f363f3620faea2a590c3e0ea8
5
5
  SHA512:
6
- metadata.gz: 671a20f2ea32891bb02a8c0167ca6ae4018f2a012168358311e5fd2f978e72c505452374cec6cf287eee5ada148b332fc641e4eb396e731e19b64d58c69406d8
7
- data.tar.gz: c6f60d658ed413eca1c69fde9423916457c77718d206000428733e232be506ab4631b57b66489b476c41e0b7c994dca42d59422da8cedfc273a688418d8a3988
6
+ metadata.gz: cb828f87dfbc9c56fd15123ecb29a3c499f22c315ef6582d47c629353e444f16c2b0755b958abe8d77f0506ee25c1cffbafa0a682ea2bfb1e9d649fa49cb7e9f
7
+ data.tar.gz: ff5f76d4c7868c28d223a95bff04a5a3b9cf01879eec9231a709afd2e67a6ce6bb2a4df8a8ccf41406a1cf69aaf7250a40c7c726952f8e8b8cc280b0e8e77175
data/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.4.14
4
+
5
+ - Support passing width or height alone to `image` keyword, calculating the other dimension automatically while preserving original aspect ratio
6
+ - Support passing x and y coordinates to `image` keyword as 2nd and 3rd arguments of 5 arguments (file, x, y, width, height)
7
+ - Support passing x, y, width, height to `image` keyword as options kwargs
8
+
9
+ ## 0.4.13
10
+
11
+ - Shorten height of examples/cpu_percentage.rb
12
+ - Optimize `table` `image` object by caching for multiple images sharing the same arguments
13
+
14
+ ## 0.4.12
15
+
16
+ - 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)
17
+ - Support passing `table` `image`/`image_text` `cell_rows` `image` data as file path/image args directly (without using `image` keyword)
18
+ - Add examples/basic_table_color.rb version that data-binds to model rows instead of raw data
19
+ - Simplify examples/basic_table_color.rb to pass image data as file-path/width/height arguments directly
20
+ - Simplify examples/basic_table_image.rb to pass image data as file url directly
21
+ - Simplify examples/basic_table_image_text.rb to pass image data as file url directly
22
+ - Fix issue with hex color support for colors starting with `'#'`
23
+
24
+ ## 0.4.11
25
+
26
+ - Support `table` `cell_rows` explicit bidirectional data-binding (with `<=>` sign)
27
+ - Support `table` `cell_rows` explicit bidirectional data-binding with model-based rows (not `Array`s of column cells) by expecting model attributes to match underscored column names
28
+ - Support specifying `column_attributes` as `Hash` map (e.g. `{'State/Province' => :state}`) in `table` `cell_rows` explicit bidirectional data-binding with model-based rows (not `Array`s of column cells)
29
+ - Support specifying `column_attributes` as `Array` (e.g. `[:name, :email, :phone, :city, :state]`) in `table` `cell_rows` explicit bidirectional data-binding with model-based rows (not `Array`s of column cells)
30
+ - Ensure `post_add_content` is not called on controls and shapes during Shine syntax data-binding
31
+ - Improve examples/basic_table_button.rb with bidirectional data-binding for `table` `cell_rows`
32
+ - Improve examples/form_table.rb with bidirectional data-binding for `table` `cell_rows`
33
+ - Ensure examples/meta_example.rb has examples sorted
34
+ - Fix minor issue in examples/meta_example.rb by deselecting radio in basic examples when selecting an advanced example (and vice versa)
35
+
3
36
  ## 0.4.10
4
37
 
5
38
  - examples/cpu_percentage.rb