summaryrefslogtreecommitdiff
path: root/data/elementary/images
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2017-11-09 17:53:20 +0200
committerCedric BAIL <cedric@osg.samsung.com>2018-01-18 10:20:28 -0800
commit4a905a22a485388a5e4ba9fb25ff5ca381420ba7 (patch)
tree213dc03c164320ebd8edd7e5959fc31a9706c629 /data/elementary/images
parent2eac0dd89d01544902d029604fe7328aca765c25 (diff)
Canvas image: add Efl.Canvas.Text.Factory + use in Ui.Text
This interface has a simple 'create' method to create Efl.Canvas.Object given a key. This is used higher-up in Ui.Text in the next commit. Ui text: add ability to set item factories Added API to set an item factory object. This is similar to the previous item providers (that worked with callbacks). You instantiate a factory object and set it on the Ui.Text object. Each factory implements the "create" method from Efl.Canvas.Text.Item_Factory. This also includes 3 public factories (Image, Emoticon and Fallback): - Image factory: creates images from added entries (key strings) - Emoticon factory: creates emoticons by querying the theme - Fallback: creates image, then falls back to emoticon If no factory is set, then the fallback (internal) factory is used. See the added "Ui.text Item Factory" test in elementary_test for an example of usage. @feature
Diffstat (limited to 'data/elementary/images')
-rw-r--r--data/elementary/images/Makefile.am3
-rw-r--r--data/elementary/images/image_items.eetbin0 -> 573646 bytes
2 files changed, 2 insertions, 1 deletions
diff --git a/data/elementary/images/Makefile.am b/data/elementary/images/Makefile.am
index 6ecc178d52..6f028257cb 100644
--- a/data/elementary/images/Makefile.am
+++ b/data/elementary/images/Makefile.am
@@ -50,7 +50,8 @@ elementary_images_files = \
50 elementary/images/pm_fill.png \ 50 elementary/images/pm_fill.png \
51 elementary/images/pt.png \ 51 elementary/images/pt.png \
52 elementary/images/earth_normal.png \ 52 elementary/images/earth_normal.png \
53 elementary/images/space.png 53 elementary/images/space.png \
54 elementary/images/image_items.eet
54 55
55elementary_images_glayer_files = \ 56elementary_images_glayer_files = \
56 elementary/images/g_layer/double_tap_1.png \ 57 elementary/images/g_layer/double_tap_1.png \
diff --git a/data/elementary/images/image_items.eet b/data/elementary/images/image_items.eet
new file mode 100644
index 0000000000..1db45dfaa3
--- /dev/null
+++ b/data/elementary/images/image_items.eet
Binary files differ