aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_evas_mask.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-30 13:16:12 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-31 09:19:26 -0400
commita17ab7f044501923a420c96a9229460c2bdf1aa8 (patch)
treeb41f2f0603c76edd8b4793004deb22bcf4e722c9 /src/bin/elementary/test_evas_mask.c
parentedje_cc: remove compile fails when setting a complex object as a clipper (diff)
downloadefl-a17ab7f044501923a420c96a9229460c2bdf1aa8.tar.gz
elm_test: add text mask case to masking demo
Summary: Depends on https://phab.enlightenment.org/D8853 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8872
Diffstat (limited to 'src/bin/elementary/test_evas_mask.c')
-rw-r--r--src/bin/elementary/test_evas_mask.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/elementary/test_evas_mask.c b/src/bin/elementary/test_evas_mask.c
index 05d3933bcc..5b470e0845 100644
--- a/src/bin/elementary/test_evas_mask.c
+++ b/src/bin/elementary/test_evas_mask.c
@@ -79,12 +79,18 @@ _toggle_mask(void *data, const Efl_Event *ev)
efl_key_data_set(ly, "clip", "image");
text = "Toggle mask (image)";
}
- else
+ else if (eina_streq(clip, "text"))
{
elm_layout_signal_emit(ly, "smartclip", "elm_test");
efl_key_data_set(ly, "clip", "smart");
text = "Toggle mask (smart)";
}
+ else
+ {
+ elm_layout_signal_emit(ly, "textclip", "elm_test");
+ efl_key_data_set(ly, "clip", "text");
+ text = "Toggle mask (text)";
+ }
efl_text_set(ev->object, text);
}