summaryrefslogtreecommitdiff
path: root/src/examples/edje
diff options
context:
space:
mode:
authorVorobiov Vitalii <vi.vorobiov@samsung.com>2014-06-24 17:11:09 +0300
committerVorobiov Vitalii <vi.vorobiov@samsung.com>2014-06-24 17:11:09 +0300
commit49344287ac1b2be7375b25a5830e2947a0ebbc92 (patch)
tree5a57649f2d4dabff3c1d1748f654cd3ab9483fef /src/examples/edje
parentaa5e2c6132d42120d82a69c16ee71e5e88ff91da (diff)
Documentation: adding missed documentation to edcref (map.color param)
Summary: There is param (of the map block in part's description) that allows user to set a color for specified vertex/point of that part. That param was undocumented so actually no one know that this param is exist and can be used in edj file. Two main fixes: - adding documentation for map.color param in edc reference. - adding .edc source code example for seeing how map.color param works. @fix Reviewers: cedric, Hermet, raster, seoz Reviewed By: cedric CC: cedric, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1083
Diffstat (limited to 'src/examples/edje')
-rw-r--r--src/examples/edje/edje-map-color.edc89
1 files changed, 89 insertions, 0 deletions
diff --git a/src/examples/edje/edje-map-color.edc b/src/examples/edje/edje-map-color.edc
new file mode 100644
index 0000000000..b4eb23e4e0
--- /dev/null
+++ b/src/examples/edje/edje-map-color.edc
@@ -0,0 +1,89 @@
1collections {
2 images{
3 image: "bubble-blue.png" COMP;
4 }
5 group {
6 name: "map_example_group";
7 parts {
8 part {
9 type: IMAGE;
10 name: "bg";
11 description {
12 state: "default" 0.0;
13 image {
14 normal: "bubble-blue.png";
15 }
16 rel1.relative: 0.25 0.25;
17 rel2.relative: 0.75 0.75;
18 }
19 }
20 part {
21 type: RECT;
22 name: "rectangle";
23 description {
24 state: "default" 0.0;
25 color: 255 255 255 255;
26 map {
27 on: 1;
28 color: 0 0 0 0 0;
29 color: 1 255 255 255 255;
30 color: 2 255 255 255 255;
31 color: 3 255 255 255 255;
32 }
33 }
34 description { state: "moved" 0.0;
35 state: "moved" 0.0;
36 color: 255 255 255 255;
37 map {
38 on: 1;
39 color: 0 0 0 255 255;
40 color: 1 0 0 255 255;
41 color: 2 0 0 0 0;
42 color: 3 0 0 255 255;
43 }
44 }
45 description {
46 state: "rotated" 0.0;
47 color: 255 255 255 255;
48 map {
49 on: 1;
50 color: 0 0 125 255 255;
51 color: 1 255 0 255 128;
52 color: 2 0 125 255 255;
53 color: 3 255 0 255 128;
54 rotation {
55 x: 65.0;
56 y: 95.0;
57 z: 95.0;
58 }
59 }
60 }
61 }
62 }
63 programs {
64 program {
65 name: "start_program";
66 signal: "load";
67 source: "";
68 transition: ACCELERATE 0.5;
69 action: STATE_SET "default" 0.0;
70 target: "rectangle";
71 after: "continue_program";
72 }
73 program {
74 name: "continue_program";
75 transition: DECELERATE 3;
76 action: STATE_SET "moved" 0.0;
77 target: "rectangle";
78 after: "rotate_program";
79 }
80 program {
81 name: "rotate_program";
82 transition: DECELERATE 4;
83 action: STATE_SET "rotated" 0.0;
84 target: "rectangle";
85 after: "start_program";
86 }
87 }
88 }
89}