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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -0
- data/README.md +1215 -30
- data/VERSION +1 -1
- data/examples/area_gallery.rb +50 -0
- data/examples/area_gallery2.rb +111 -0
- data/examples/area_gallery3.rb +52 -0
- data/examples/area_gallery4.rb +113 -0
- data/examples/basic_area2.rb +1 -1
- data/examples/basic_table_progress_bar.rb +13 -3
- data/examples/basic_transform.rb +27 -0
- data/examples/dynamic_area.rb +1 -1
- data/examples/dynamic_area2.rb +97 -0
- data/examples/histogram.rb +119 -0
- data/glimmer-dsl-libui.gemspec +0 -0
- data/lib/glimmer/dsl/libui/control_expression.rb +1 -1
- data/lib/glimmer/dsl/libui/dsl.rb +1 -0
- data/lib/glimmer/dsl/libui/property_expression.rb +5 -1
- data/lib/glimmer/dsl/libui/shape_expression.rb +56 -0
- data/lib/glimmer/libui/{rectangle_proxy.rb → arc.rb} +11 -26
- data/lib/glimmer/libui/area_proxy.rb +21 -11
- data/lib/glimmer/libui/bezier.rb +36 -0
- data/lib/glimmer/libui/box.rb +1 -1
- data/lib/glimmer/libui/color_button_proxy.rb +67 -15
- data/lib/glimmer/libui/control_proxy.rb +10 -14
- data/lib/glimmer/libui/figure.rb +52 -0
- data/lib/glimmer/libui/form_proxy.rb +1 -1
- data/lib/glimmer/libui/grid_proxy.rb +1 -1
- data/lib/glimmer/libui/line.rb +36 -0
- data/lib/glimmer/libui/matrix_proxy.rb +145 -0
- data/lib/glimmer/libui/parent.rb +36 -0
- data/lib/glimmer/libui/path_proxy.rb +35 -18
- data/lib/glimmer/libui/rectangle.rb +36 -0
- data/lib/glimmer/libui/shape.rb +143 -0
- data/lib/glimmer/libui/square.rb +36 -0
- data/lib/glimmer/libui/transformable.rb +72 -0
- data/lib/glimmer/libui/window_proxy.rb +8 -1
- data/lib/glimmer/libui.rb +50 -0
- data/lib/glimmer-dsl-libui.rb +1 -0
- metadata +23 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56c014bad471f47e7af8a1a36bd6e1642f613c5c5ff0371e16ccd037401831a0
|
4
|
+
data.tar.gz: adcbb03e5e80604fac25a6c167aefca3b451f6b5a9bc29bbc2679a6e19fce4fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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`
|