summaryrefslogtreecommitdiff
path: root/data/elementary/objects
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-12-16 18:59:05 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-12-16 19:18:29 +0900
commita07877bd57f07b6ea11f58a2f5ae37716d5579c4 (patch)
tree691e7db96752a86a40a1493f9832cd3d1a69e787 /data/elementary/objects
parent584e17ae84750b0c8a9bc92f41c767073a41fc94 (diff)
elm: Add a test case for evas masking
This tests masks of masks in a genlist, with maybe a map. Nothing crazy.
Diffstat (limited to 'data/elementary/objects')
-rw-r--r--data/elementary/objects/Makefile.am4
-rw-r--r--data/elementary/objects/roundedrect.pngbin0 -> 528 bytes
-rw-r--r--data/elementary/objects/test_masking.edc70
3 files changed, 73 insertions, 1 deletions
diff --git a/data/elementary/objects/Makefile.am b/data/elementary/objects/Makefile.am
index 186bc65439..e5de55cc66 100644
--- a/data/elementary/objects/Makefile.am
+++ b/data/elementary/objects/Makefile.am
@@ -3,6 +3,7 @@ EDJE_CC_FLAGS += -id $(top_srcdir)/data/elementary/objects -fd $(top_srcdir)/dat
3EXTRA_DIST += \ 3EXTRA_DIST += \
4elementary/objects/test.edc \ 4elementary/objects/test.edc \
5elementary/objects/test_external.edc \ 5elementary/objects/test_external.edc \
6elementary/objects/test_masking.edc \
6elementary/objects/test_prefs.edc \ 7elementary/objects/test_prefs.edc \
7elementary/objects/test_prefs.epc \ 8elementary/objects/test_prefs.epc \
8elementary/objects/multip.edc \ 9elementary/objects/multip.edc \
@@ -21,4 +22,5 @@ elementary/objects/border2.png \
21elementary/objects/border3.png \ 22elementary/objects/border3.png \
22elementary/objects/border4.png \ 23elementary/objects/border4.png \
23elementary/objects/border5.png \ 24elementary/objects/border5.png \
24elementary/objects/border6.png 25elementary/objects/border6.png \
26elementary/objects/roundedrect.png
diff --git a/data/elementary/objects/roundedrect.png b/data/elementary/objects/roundedrect.png
new file mode 100644
index 0000000000..21b5aba2a8
--- /dev/null
+++ b/data/elementary/objects/roundedrect.png
Binary files differ
diff --git a/data/elementary/objects/test_masking.edc b/data/elementary/objects/test_masking.edc
new file mode 100644
index 0000000000..4a1beabb76
--- /dev/null
+++ b/data/elementary/objects/test_masking.edc
@@ -0,0 +1,70 @@
1collections {
2 images {
3 image: "roundedrect.png" COMP;
4 }
5 filters {
6 filter { name: "aura";
7 script {
8 padding_set { 5 }
9 fill { color = '#2228' }
10 blur { 5, color = 'red' }
11 blur { 2, color = 'orange' }
12 blend {}
13 }
14 }
15 }
16 group { "masking";
17 parts {
18 rect { "clip"; norender; }
19 image { "mask";
20 norender;
21 desc { "default";
22 image {
23 normal: "roundedrect.png";
24 border: 22 22 22 22;
25 }
26 }
27 }
28 swallow { "content";
29 desc { "default";
30 clip_to: "mask";
31 }
32 desc { "unclipped";
33 clip_to: "clip";
34 }
35 }
36 }
37 programs {
38 program {
39 signal: "unclip";
40 source: "*";
41 action: STATE_SET "unclipped";
42 target: "content";
43 }
44 program {
45 signal: "clip";
46 source: "*";
47 action: STATE_SET "default";
48 target: "content";
49 }
50 }
51 }
52 group { "text";
53 parts {
54 text { "text";
55 desc { "default";
56 text {
57 font: "Sans";
58 size: 32;
59 text: "HELLO";
60 ellipsis: -1;
61 }
62 fixed: 1 1;
63 filter.code: "aura";
64 rel1.offset: -5 -5;
65 rel2.offset: 4 4;
66 }
67 }
68 }
69 }
70}