summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_textblock.c
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2018-09-12 21:17:53 +0300
committerDaniel Hirt <hirt.danny@gmail.com>2018-11-05 17:31:06 +0200
commit9903e7d556a088751881164c6c3663d12ebf9c05 (patch)
tree4dea9f14b5d751ac58393cf0ea19397f9ed6226b /src/lib/evas/canvas/evas_object_textblock.c
parent86a8f832ae2b622cd5489e5a01978d494997aaad (diff)
Text: add markup_range_get
This allows to retrieve the markup representation of the current text. @feature
Diffstat (limited to 'src/lib/evas/canvas/evas_object_textblock.c')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index c290ac3..d5705a4 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -11418,6 +11418,17 @@ _evas_textblock_cursor_range_text_markup_get(const Efl_Text_Cursor_Cursor *cur1,
11418 } 11418 }
11419} 11419}
11420 11420
11421EOLIAN char *
11422_efl_canvas_text_efl_text_markup_markup_range_get(const Eo *eo_obj,
11423 Efl_Canvas_Text_Data *o EINA_UNUSED, Efl_Text_Cursor_Cursor *start,
11424 Efl_Text_Cursor_Cursor *end)
11425{
11426 if (!start || !start->node) return NULL;
11427 if (!end || !end->node) return NULL;
11428 if ((start->obj != eo_obj) || (start->obj != end->obj)) return NULL;
11429 return _evas_textblock_cursor_range_text_markup_get(start, end);
11430}
11431
11421static char * 11432static char *
11422_evas_textblock_cursor_range_text_plain_get(const Efl_Text_Cursor_Cursor *cur1, const Efl_Text_Cursor_Cursor *_cur2) 11433_evas_textblock_cursor_range_text_plain_get(const Efl_Text_Cursor_Cursor *cur1, const Efl_Text_Cursor_Cursor *_cur2)
11423{ 11434{