path: root/src/lib/evas/Evas_Eo.h
diff options
authorDaniel Hirt <>2017-11-09 17:53:20 +0200
committerCedric BAIL <>2018-01-18 10:20:28 -0800
commit4a905a22a485388a5e4ba9fb25ff5ca381420ba7 (patch)
tree213dc03c164320ebd8edd7e5959fc31a9706c629 /src/lib/evas/Evas_Eo.h
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 'src/lib/evas/Evas_Eo.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_Eo.h b/src/lib/evas/Evas_Eo.h
index d6664a2ddd..f2b2f6d372 100644
--- a/src/lib/evas/Evas_Eo.h
+++ b/src/lib/evas/Evas_Eo.h
@@ -21,6 +21,7 @@
21 */ 21 */
22//#include "canvas/efl_canvas_text_cursor.eo.h" 22//#include "canvas/efl_canvas_text_cursor.eo.h"
23#include "canvas/efl_canvas_text.eo.h" 23#include "canvas/efl_canvas_text.eo.h"
24#include "canvas/efl_canvas_text_factory.eo.h"
24/** 25/**
25 * @} 26 * @}
26 */ 27 */