diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2019-05-30 13:16:12 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2019-05-31 09:19:26 -0400 |
commit | a17ab7f044501923a420c96a9229460c2bdf1aa8 (patch) | |
tree | b41f2f0603c76edd8b4793004deb22bcf4e722c9 /data/elementary/objects | |
parent | fd48c95f4907958bf10a07b2506fc12749fc92fa (diff) |
elm_test: add text mask case to masking demo
Summary: Depends on D8853
Reviewers: cedric
Reviewed By: cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8872
Diffstat (limited to 'data/elementary/objects')
-rw-r--r-- | data/elementary/objects/test_masking.edc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/data/elementary/objects/test_masking.edc b/data/elementary/objects/test_masking.edc index 4d8e8ed6cc..b754a7aa46 100644 --- a/data/elementary/objects/test_masking.edc +++ b/data/elementary/objects/test_masking.edc | |||
@@ -26,6 +26,11 @@ collections { | |||
26 | } | 26 | } |
27 | } | 27 | } |
28 | group { "masking"; | 28 | group { "masking"; |
29 | styles { | ||
30 | style { name: "textblock_style"; | ||
31 | base: "font=Sans-Bold font_size=24 wrap=word color=#ffffffff"; | ||
32 | } | ||
33 | } | ||
29 | parts { | 34 | parts { |
30 | rect { "clip"; norender; } | 35 | rect { "clip"; norender; } |
31 | image { "mask"; | 36 | image { "mask"; |
@@ -37,6 +42,23 @@ collections { | |||
37 | } | 42 | } |
38 | } | 43 | } |
39 | } | 44 | } |
45 | textblock { "textmask"; | ||
46 | norender; | ||
47 | desc { | ||
48 | text { | ||
49 | style: "textblock_style"; | ||
50 | ellipsis: -1; | ||
51 | text: | ||
52 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, " | ||
53 | "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. " | ||
54 | "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris " | ||
55 | "nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in " | ||
56 | "reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla " | ||
57 | "pariatur. Excepteur sint occaecat cupidatat non proident, sunt in " | ||
58 | "culpa qui officia deserunt mollit anim id est laborum."; | ||
59 | } | ||
60 | } | ||
61 | } | ||
40 | swallow { "mask2"; | 62 | swallow { "mask2"; |
41 | norender; | 63 | norender; |
42 | } | 64 | } |
@@ -47,6 +69,9 @@ collections { | |||
47 | desc { "smartclip"; | 69 | desc { "smartclip"; |
48 | clip: "mask2"; | 70 | clip: "mask2"; |
49 | } | 71 | } |
72 | desc { "textclip"; | ||
73 | clip: "textmask"; | ||
74 | } | ||
50 | desc { "unclipped"; | 75 | desc { "unclipped"; |
51 | clip_to: "clip"; | 76 | clip_to: "clip"; |
52 | } | 77 | } |
@@ -71,6 +96,12 @@ collections { | |||
71 | action: STATE_SET "smartclip"; | 96 | action: STATE_SET "smartclip"; |
72 | target: "content"; | 97 | target: "content"; |
73 | } | 98 | } |
99 | program { | ||
100 | signal: "textclip"; | ||
101 | source: "*"; | ||
102 | action: STATE_SET "textclip"; | ||
103 | target: "content"; | ||
104 | } | ||
74 | } | 105 | } |
75 | } | 106 | } |
76 | group { "text"; | 107 | group { "text"; |