summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-09-23 10:20:49 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-09-23 10:20:49 +0900
commit346c5ed484720bd4b613628382153c70540e2a8f (patch)
tree38404f59831de1a0bce366c4d32c9e9b0f8cc00c
parent000f5fee84384423712cbb706d6da6aa2cd06007 (diff)
Add example code of ecore_imf_context_bidi_direction_set in ecore_imf_example
-rw-r--r--src/examples/ecore/ecore_imf_example.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/examples/ecore/ecore_imf_example.c b/src/examples/ecore/ecore_imf_example.c
index ca8569c..20fca53 100644
--- a/src/examples/ecore/ecore_imf_example.c
+++ b/src/examples/ecore/ecore_imf_example.c
@@ -144,18 +144,20 @@ _imf_cursor_info_set(Entry *en)
144 Evas_Coord x, y, w, h; 144 Evas_Coord x, y, w, h;
145 Evas_Coord cx, cy, cw, ch; // cursor geometry 145 Evas_Coord cx, cy, cw, ch; // cursor geometry
146 int cursor_pos; // cursor position in chars (Not bytes) 146 int cursor_pos; // cursor position in chars (Not bytes)
147 Evas_BiDi_Direction dir;
147 148
148 if (!en) return; 149 if (!en) return;
149 150
150 // get cursor geometry 151 // get cursor geometry
151 evas_object_geometry_get(en->txt_obj, &x, &y, &w, &h); 152 evas_object_geometry_get(en->txt_obj, &x, &y, &w, &h);
152 evas_textblock_cursor_geometry_get(en->cursor, &cx, &cy, &cw, &ch, NULL, EVAS_TEXTBLOCK_CURSOR_BEFORE); 153 evas_textblock_cursor_geometry_get(en->cursor, &cx, &cy, &cw, &ch, &dir, EVAS_TEXTBLOCK_CURSOR_BEFORE);
153 154
154 // get cursor position 155 // get cursor position
155 cursor_pos = evas_textblock_cursor_pos_get(en->cursor); 156 cursor_pos = evas_textblock_cursor_pos_get(en->cursor);
156 157
157 ecore_imf_context_cursor_position_set(en->imf_context, cursor_pos); 158 ecore_imf_context_cursor_position_set(en->imf_context, cursor_pos);
158 ecore_imf_context_cursor_location_set(en->imf_context, x + cx, y + cy, cw, ch); 159 ecore_imf_context_cursor_location_set(en->imf_context, x + cx, y + cy, cw, ch);
160 ecore_imf_context_bidi_direction_set(en->imf_context, (Ecore_IMF_BiDi_Direction)dir);
159} 161}
160 162
161static void 163static void