summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas.h
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2013-04-10 14:54:37 +0300
committerYakov Goldberg <yakov.g@samsung.com>2013-04-10 14:59:48 +0300
commit7016872619b7b84e46688de29b133997c43f95ed (patch)
treedcaa050daa1a4f6701680cd14bc3d9bc1f37ba1f /src/lib/evas/Evas.h
parenta70abbb3811bd9426bc3e30bd70fb3b027cc29e6 (diff)
Efl textblock/entry: additions to split BiDi cursor
- handling multiple runs, multiple lines, last char of line/par - tests added Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Diffstat (limited to 'src/lib/evas/Evas.h')
-rw-r--r--src/lib/evas/Evas.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/lib/evas/Evas.h b/src/lib/evas/Evas.h
index 9d3603b..86d0beb 100644
--- a/src/lib/evas/Evas.h
+++ b/src/lib/evas/Evas.h
@@ -11628,8 +11628,30 @@ EAPI char *evas_textblock_cursor_range_text_g
11628 */ 11628 */
11629EAPI char *evas_textblock_cursor_content_get(const Evas_Textblock_Cursor *cur) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; 11629EAPI char *evas_textblock_cursor_content_get(const Evas_Textblock_Cursor *cur) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
11630 11630
11631/** FIXME: doc. 11631/**
11632 * The cw2 and etc are not valid if false is returned. */ 11632 * Returns the geometry of two cursors ("split cursor"), if logical cursor is
11633 * between LTR/RTL text, also considering paragraph direction.
11634 * Upper cursor is shown for the text of the same direction as paragraph,
11635 * lower cursor - for opposite.
11636 *
11637 * Split cursor geometry is valid only in '|' cursor mode.
11638 * In this case @c EINA_TRUE is returned and cx2, cy2, cw2, ch2 are set,
11639 * otherwise it behaves like cursor_geometry_get.
11640 *
11641 * @param[in] cur the cursor.
11642 * @param[out] cx the x of the cursor (or upper cursor)
11643 * @param[out] cy the y of the cursor (or upper cursor)
11644 * @param[out] cw the width of the cursor (or upper cursor)
11645 * @param[out] ch the height of the cursor (or upper cursor)
11646 * @param[out] cx2 the x of the lower cursor
11647 * @param[out] cy2 the y of the lower cursor
11648 * @param[out] cw2 the width of the lower cursor
11649 * @param[out] ch2 the height of the lower cursor
11650 * @param[in] dir the direction of the cursor, can be NULL.
11651 * @param[in] ctype the type of the cursor.
11652 * @return @c EINA_TRUE for split cursor, @c EINA_FALSE otherwise
11653 * @since 1.8
11654 */
11633EAPI Eina_Bool 11655EAPI Eina_Bool
11634evas_textblock_cursor_geometry_bidi_get(const Evas_Textblock_Cursor *cur, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch, Evas_Coord *cx2, Evas_Coord *cy2, Evas_Coord *cw2, Evas_Coord *ch2, Evas_Textblock_Cursor_Type ctype); 11656evas_textblock_cursor_geometry_bidi_get(const Evas_Textblock_Cursor *cur, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch, Evas_Coord *cx2, Evas_Coord *cy2, Evas_Coord *cw2, Evas_Coord *ch2, Evas_Textblock_Cursor_Type ctype);
11635 11657