glimmer-dsl-libui 0.1.1 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/README.md +1215 -30
  4. data/VERSION +1 -1
  5. data/examples/area_gallery.rb +50 -0
  6. data/examples/area_gallery2.rb +111 -0
  7. data/examples/area_gallery3.rb +52 -0
  8. data/examples/area_gallery4.rb +113 -0
  9. data/examples/basic_area2.rb +1 -1
  10. data/examples/basic_table_progress_bar.rb +13 -3
  11. data/examples/basic_transform.rb +27 -0
  12. data/examples/dynamic_area.rb +1 -1
  13. data/examples/dynamic_area2.rb +97 -0
  14. data/examples/histogram.rb +119 -0
  15. data/glimmer-dsl-libui.gemspec +0 -0
  16. data/lib/glimmer/dsl/libui/control_expression.rb +1 -1
  17. data/lib/glimmer/dsl/libui/dsl.rb +1 -0
  18. data/lib/glimmer/dsl/libui/property_expression.rb +5 -1
  19. data/lib/glimmer/dsl/libui/shape_expression.rb +56 -0
  20. data/lib/glimmer/libui/{rectangle_proxy.rb → arc.rb} +11 -26
  21. data/lib/glimmer/libui/area_proxy.rb +21 -11
  22. data/lib/glimmer/libui/bezier.rb +36 -0
  23. data/lib/glimmer/libui/box.rb +1 -1
  24. data/lib/glimmer/libui/color_button_proxy.rb +67 -15
  25. data/lib/glimmer/libui/control_proxy.rb +10 -14
  26. data/lib/glimmer/libui/figure.rb +52 -0
  27. data/lib/glimmer/libui/form_proxy.rb +1 -1
  28. data/lib/glimmer/libui/grid_proxy.rb +1 -1
  29. data/lib/glimmer/libui/line.rb +36 -0
  30. data/lib/glimmer/libui/matrix_proxy.rb +145 -0
  31. data/lib/glimmer/libui/parent.rb +36 -0
  32. data/lib/glimmer/libui/path_proxy.rb +35 -18
  33. data/lib/glimmer/libui/rectangle.rb +36 -0
  34. data/lib/glimmer/libui/shape.rb +143 -0
  35. data/lib/glimmer/libui/square.rb +36 -0
  36. data/lib/glimmer/libui/transformable.rb +72 -0
  37. data/lib/glimmer/libui/window_proxy.rb +8 -1
  38. data/lib/glimmer/libui.rb +50 -0
  39. data/lib/glimmer-dsl-libui.rb +1 -0
  40. metadata +23 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0938fd7cd0d762ecf27c7897a6305ec9a1d8b447917c4612c864e87486e44241'
4
- data.tar.gz: 7387d2a5d966bbf5f2e70184013cc8056023b94375b1ec1e9941bcdac0c8da27
3
+ metadata.gz: 56c014bad471f47e7af8a1a36bd6e1642f613c5c5ff0371e16ccd037401831a0
4
+ data.tar.gz: adcbb03e5e80604fac25a6c167aefca3b451f6b5a9bc29bbc2679a6e19fce4fc
5
5
  SHA512:
6
- metadata.gz: c44c83599999686358def664edf39c9f4cdcac415fd608d3668109eaba098b296cd27ce33130d8b0318904f89b406a5bddc2df808233f85c5474dc1165bbbfd2
7
- data.tar.gz: c9d69205562886250e16359b5db53d426d4cea2d96da8bdac34c41b1488f7cd74e9e3864fa82636cd351169fab60e945f56a19f5219fc59312b4fc5d11e63770
6
+ metadata.gz: 65003a4c358b09c6ec0d2f5215245808af2f6510ea2901067b33363e918ee9b9713005546d0baf925a16ccb1ad490229217f1ed4ae8ec375085bb6d3770c1b5a
7
+ data.tar.gz: d2c5824d177dc82351857efe565f151711f34034b8522bef1045224728b805c3e9645f4098a448458564f3417981eab3c354c6d61299d8a96cf97bf56fa4a776
data/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.1.5
4
+
5
+ - Support examples/histogram.rb
6
+ - Support `color_button` `color=`/`set_color` setter
7
+ - Switch `color_button` `color` API to return a hash of `{:r, :g, :b, :a}` instead of an array for consistency with other libui APIs (like fill and stroke brush)
8
+ - Implement `color_button` fine-grained setters (e.g. `cg.red = 144`)
9
+ - Support hex colors in `color_button` (by passing an Integer 0xFFBBAA or String hex 'ffbbaa') and `path` `fill` and `stroke` (with `:color` key)
10
+ - Eliminate need for passing `area_draw_params` to `path` when declared underneath `area` `on_draw` listener
11
+ - Support `path` `transform` property for building `matrix` objects (either through `path { transform {operations} }` directly or through `m1 = matrix {operations}; path { transform m1 }` to reuse a matrix)
12
+ - Support `area` `transform` property for building `matrix` objects (either through `area { transform {operations} }` directly or through `m1 = matrix {operations}; area { transform m1 }` to reuse a matrix)
13
+ - Ensure `matrix` `rotate` method accepts degrees (not radians)
14
+ - Support `matrix` `multiply` method that accepts a `Glimmer::LibUI::MatrixProxy` object
15
+ - Support `matrix` `invertible?` property that returns a Boolean
16
+ - Automatically reparent an `area` that is added directly under `window` with `vertical_box`. This fixes issue with display of `area` added directly under `window` in Linux.
17
+
18
+ ## 0.1.4
19
+
20
+ - Update examples/basic_table_progress_bar.rb with a listener
21
+ - Set default values for shape parameters and support passing shape parameters as properties inside their body (e.g. `rectangle {x 2; y 3; width 400; height 800}`)
22
+ - New examples/area_gallery2.rb (utilizing properties instead of args)
23
+ - New examples/area_gallery3.rb (semi-declarative on_draw dynamic paths)
24
+ - New examples/area_gallery4.rb (utilizing properties instead of args with semi-declarative on_draw dynamic paths)
25
+
26
+ ## 0.1.3
27
+
28
+ - New examples/area_gallery.rb
29
+ - Support `figure(x = nil, y = nil) {}` (`draw_path_new_figure`)
30
+ - Support `closed true` property inside nested figure (`draw_path_close_figure`)
31
+ - Support `line`
32
+ - Support `bezier`
33
+ - Support `arc` (`draw_path_arc_to` if `draw_path_new_figure` was called already or `draw_path_new_figure_with_arc` if parent is a figure without x,y)
34
+ - Support `square` with `x`, `y`, and `length` properties
35
+
36
+ ## 0.1.2
37
+
38
+ - Support re-opening a control by using `#content {...}`
39
+ - Ensure destroying `path`/`rectangle` after drawing if it is declared inside `on_draw`
40
+ - Observe `path` `fill` and `stroke` hashes for changes and automatically redraw area accordingly
41
+ - New examples/dynamic_area2.rb (using stable paths)
42
+
3
43
  ## 0.1.1
4
44
 
5
45
  - Support `area` listener: `on_draw`