glimmer-dsl-gtk 0.0.2 → 0.0.6
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 +1072 -27
- data/VERSION +1 -1
- data/glimmer-dsl-gtk.gemspec +0 -0
- data/images/breaking-blue-wave.png +0 -0
- data/lib/glimmer/dsl/gtk/observe_expression.rb +35 -0
- data/lib/glimmer/gtk/shape/arc_negative.rb +70 -0
- data/lib/glimmer/gtk/shape/path.rb +33 -0
- data/lib/glimmer/gtk/shape/square.rb +76 -0
- data/lib/glimmer/gtk/shape.rb +56 -10
- data/lib/glimmer/gtk/transformable.rb +93 -0
- data/lib/glimmer/gtk/widget_proxy/drawing_area_proxy.rb +16 -0
- data/lib/glimmer/gtk/widget_proxy.rb +2 -2
- data/samples/cairo/arc.rb +44 -0
- data/samples/cairo/arc_negative.rb +44 -0
- data/samples/cairo/clip.rb +34 -0
- data/samples/cairo/clip_image.rb +28 -0
- data/samples/cairo/curve_to.rb +39 -0
- data/samples/cairo/dashes.rb +30 -0
- data/samples/cairo/fill_and_stroke2.rb +36 -0
- data/samples/cairo/fill_style.rb +43 -0
- data/samples/cairo/gradient.rb +31 -0
- data/samples/cairo/image.rb +23 -0
- data/samples/cairo/image_gradient.rb +32 -0
- data/samples/cairo/multi_segment_caps.rb +27 -0
- data/samples/cairo/rounded_rectangle.rb +20 -0
- data/samples/cairo/set_line_cap.rb +53 -0
- data/samples/cairo/set_line_join.rb +43 -0
- data/samples/elaborate/tetris/model/block.rb +48 -0
- data/samples/elaborate/tetris/model/game.rb +320 -0
- data/samples/elaborate/tetris/model/past_game.rb +39 -0
- data/samples/elaborate/tetris/model/tetromino.rb +329 -0
- data/samples/elaborate/tetris.rb +338 -0
- data/samples/hello/hello_drawing_area.rb +1 -3
- data/samples/hello/hello_drawing_area_manual.rb +20 -21
- metadata +29 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3230b55893dbd6faaa1a5ba29d191e0f55586d6d6147e5274286162d02d972c
|
4
|
+
data.tar.gz: ac79a95afc0e0f3cbaf37d501477beace1a810bdfdf82eb10d53d79094d2dedf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8258cdcf3a83e552a8b24b4ed1d431b1c79414f5ff8c0f4a17779e40b95bd648c8470ca8fa54fcaf7622e34a534828cb137c543d9217ae83df5f969a0636beca
|
7
|
+
data.tar.gz: f01a32a3d485115028622c4235997c4018c369bf350fa23efbe6877a508afd047147c2f5a134e83367af007762d894f753ed2c3afb4bc2baddb7819ea42a7220
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,45 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.6
|
4
|
+
|
5
|
+
- samples/cairo/clip_image.rb
|
6
|
+
- samples/cairo/curve_to.rb
|
7
|
+
- samples/cairo/dashes.rb
|
8
|
+
- samples/cairo/fill_and_stroke2.rb
|
9
|
+
- samples/cairo/fill_style.rb
|
10
|
+
- samples/cairo/gradient.rb
|
11
|
+
- samples/cairo/image.rb
|
12
|
+
- samples/cairo/image_gradient.rb
|
13
|
+
- samples/cairo/multi_segment_caps.rb
|
14
|
+
- samples/cairo/rounded_rectangle.rb
|
15
|
+
- samples/cairo/set_line_cap.rb
|
16
|
+
- samples/cairo/set_line_join.rb
|
17
|
+
- Supported nested sub-paths (nesting `path` within another `path`)
|
18
|
+
- Support declarative `fill`/`paint` of `image, x, y` in cairo graphics
|
19
|
+
- Support declarative transforms on cairo graphics shapes: `translate`, `scale`, `rotate`
|
20
|
+
- Support applying transform on `drawing_area` `paint`
|
21
|
+
|
22
|
+
## 0.0.5
|
23
|
+
|
24
|
+
- Support `drawing_area#paint(red, green, blue)` operation to set the initial `drawing_area` paint color base
|
25
|
+
- Support `arc` as an operation inside `path` in Cairo declarative shape syntax
|
26
|
+
- Support `arc_negative` cairo graphics shape
|
27
|
+
- Support cairo graphics shape `clip`
|
28
|
+
|
29
|
+
## 0.0.4
|
30
|
+
|
31
|
+
- Tetris Menu Bar
|
32
|
+
- Tetris Score Board
|
33
|
+
- Tetris Next Tetromino Preview
|
34
|
+
|
35
|
+
## 0.0.3
|
36
|
+
|
37
|
+
- samples/elaborate/tetris.rb (basic Tetris implementation)
|
38
|
+
- `observe` keyword for observing Model attributes to update the View
|
39
|
+
- Ensure `fill`/`stroke` properties in `drawin_area` shapes accept 255-based rgb colors (or rgba with 1-based transparency)
|
40
|
+
- Support setting all cairo shape attributes (e.g. `line_width`, `line_cap`, etc...) with declarative syntax (whichever is specified)
|
41
|
+
- Upgrade to glimmer 2.6.0
|
42
|
+
|
3
43
|
## 0.0.2
|
4
44
|
|
5
45
|
- Support re-opening any widget proxy content with `#content {}` block to add more nested widgets inside
|