summaryrefslogtreecommitdiff
path: root/data
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
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')
-rw-r--r--data/Makefile.am6
-rw-r--r--data/elementary/images/Makefile.am1
-rw-r--r--data/elementary/images/pm_fill.pngbin0 -> 254 bytes
-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
6 files changed, 80 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index ce13137..db5822f 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -210,6 +210,7 @@ elementaryobjectsdir = $(datadir)/elementary/objects
210elementaryobjects_DATA = \ 210elementaryobjects_DATA = \
211elementary/objects/test.edj \ 211elementary/objects/test.edj \
212elementary/objects/test_external.edj \ 212elementary/objects/test_external.edj \
213elementary/objects/test_masking.edj \
213elementary/objects/multip.edj \ 214elementary/objects/multip.edj \
214elementary/objects/cursors.edj \ 215elementary/objects/cursors.edj \
215elementary/objects/font_preview.edj \ 216elementary/objects/font_preview.edj \
@@ -232,6 +233,11 @@ elementary/objects/test_external.edj: elementary/objects/test_external.edc
232 $(MKDIR_P) elementary/objects/; \ 233 $(MKDIR_P) elementary/objects/; \
233 $(EDJE_CC) $(EDJE_CC_FLAGS) $< $@ 234 $(EDJE_CC) $(EDJE_CC_FLAGS) $< $@
234 235
236elementary/objects/test_masking.edj: elementary/objects/test_masking.edc
237 $(AM_V_EDJ) \
238 $(MKDIR_P) elementary/objects/; \
239 $(EDJE_CC) $(EDJE_CC_FLAGS) $< $@
240
235elementary/objects/multip.edj: elementary/objects/multip.edc 241elementary/objects/multip.edj: elementary/objects/multip.edc
236 $(AM_V_EDJ) \ 242 $(AM_V_EDJ) \
237 $(MKDIR_P) elementary/objects/; \ 243 $(MKDIR_P) elementary/objects/; \
diff --git a/data/elementary/images/Makefile.am b/data/elementary/images/Makefile.am
index 9909d82..83701fd 100644
--- a/data/elementary/images/Makefile.am
+++ b/data/elementary/images/Makefile.am
@@ -46,6 +46,7 @@ elementary_images_files = \
46 elementary/images/mystrale.jpg \ 46 elementary/images/mystrale.jpg \
47 elementary/images/mystrale_2.jpg \ 47 elementary/images/mystrale_2.jpg \
48 elementary/images/twofish.jpg \ 48 elementary/images/twofish.jpg \
49 elementary/images/pm_fill.png \
49 elementary/images/pt.png \ 50 elementary/images/pt.png \
50 elementary/images/earth_normal.png \ 51 elementary/images/earth_normal.png \
51 elementary/images/space.png 52 elementary/images/space.png
diff --git a/data/elementary/images/pm_fill.png b/data/elementary/images/pm_fill.png
new file mode 100644
index 0000000..8ef098f
--- /dev/null
+++ b/data/elementary/images/pm_fill.png
Binary files differ
diff --git a/data/elementary/objects/Makefile.am b/data/elementary/objects/Makefile.am
index 186bc65..e5de55c 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 0000000..21b5aba
--- /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 0000000..4a1beab
--- /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}