summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas_Common.h
diff options
context:
space:
mode:
authorThiep Ha <thiepha@gmail.com>2014-11-26 11:29:08 +0000
committerTom Hacohen <tom@stosb.com>2014-11-26 11:29:09 +0000
commitc30303d7e8dd92763298156d9bcaee2b1b1d5d86 (patch)
tree66f7497d9d50c091300a2def60ebbfce6ad2b403 /src/lib/evas/Evas_Common.h
parentf6a5ada4a215b93bb65be44ea04856c528c82ba7 (diff)
edje entry: improve selection performance
Summary: The selection performance is slow if we select large chunk of text. This is caused by many rectangles created and deleted. This patch provides a way to improve it by combine selection rectangles of line in middle into one rectangles (i.e, if we have N lines, the selection rectangle for lines 2 to N-1 will be combined into one.) @feature Reviewers: raster, cedric, tasn Subscribers: herdsman, woohyun, cedric Differential Revision: https://phab.enlightenment.org/D1508
Diffstat (limited to 'src/lib/evas/Evas_Common.h')
-rw-r--r--src/lib/evas/Evas_Common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_Common.h b/src/lib/evas/Evas_Common.h
index 94acba2163..a09cb20cc4 100644
--- a/src/lib/evas/Evas_Common.h
+++ b/src/lib/evas/Evas_Common.h
@@ -3981,6 +3981,17 @@ EAPI int evas_textblock_cursor_line_coord_s
3981EAPI Eina_List *evas_textblock_cursor_range_geometry_get(const Evas_Textblock_Cursor *cur1, const Evas_Textblock_Cursor *cur2) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1, 2); 3981EAPI Eina_List *evas_textblock_cursor_range_geometry_get(const Evas_Textblock_Cursor *cur1, const Evas_Textblock_Cursor *cur2) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1, 2);
3982 3982
3983/** 3983/**
3984 * Get the simple geometry of a range.
3985 * The simple geometry is the geomtry in which rectangles in middle
3986 * lines of range are merged into one big rectangle.
3987 *
3988 * @param cur1 one side of the range.
3989 * @param cur2 other side of the range.
3990 * @return an iterator of rectangles representing the geometry of the range.
3991 */
3992EAPI Eina_Iterator *evas_textblock_cursor_range_simple_geometry_get(const Evas_Textblock_Cursor *cur1, const Evas_Textblock_Cursor *cur2) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1, 2);
3993
3994/**
3984 * Get the geometry of ? 3995 * Get the geometry of ?
3985 * 3996 *
3986 * @param cur one side of the range. 3997 * @param cur one side of the range.