summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_drawable.c2
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c3
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window.c7
-rw-r--r--legacy/edje/.gitignore39
-rw-r--r--legacy/edje/src/lib/Edje.h25
-rw-r--r--legacy/edje/src/lib/edje_cache.c4
-rw-r--r--legacy/edje/src/lib/edje_entry.c34
-rw-r--r--legacy/edje/src/lib/edje_private.h1
-rw-r--r--legacy/edje/src/lib/edje_util.c53
9 files changed, 139 insertions, 29 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_drawable.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_drawable.c
index 00a53aa299..90bda18a2e 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_drawable.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_drawable.c
@@ -12,7 +12,7 @@
12 12
13/** 13/**
14 * Retrieves the geometry of the given drawable. 14 * Retrieves the geometry of the given drawable.
15 * @param d The given drawable. 15* @param d The given drawable.
16 * @param x Pointer to an integer into which the X position is to be stored. 16 * @param x Pointer to an integer into which the X position is to be stored.
17 * @param y Pointer to an integer into which the Y position is to be stored. 17 * @param y Pointer to an integer into which the Y position is to be stored.
18 * @param w Pointer to an integer into which the width is to be stored. 18 * @param w Pointer to an integer into which the width is to be stored.
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c
index 807ef9ae5d..da9a6d6687 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c
@@ -719,7 +719,7 @@ _ecore_x_selection_parse(const char *target, void *data, int size, int format)
719 if (!strcmp(prs->target, target)) 719 if (!strcmp(prs->target, target))
720 { 720 {
721 sel = prs->parse(target, data, size, format); 721 sel = prs->parse(target, data, size, format);
722 return sel; 722 if (sel) return sel;
723 } 723 }
724 } 724 }
725 725
@@ -851,6 +851,7 @@ _ecore_x_selection_parser_text(const char *target __UNUSED__,
851 sel->text = (char *)data; 851 sel->text = (char *)data;
852 ECORE_X_SELECTION_DATA(sel)->length = size; 852 ECORE_X_SELECTION_DATA(sel)->length = size;
853 ECORE_X_SELECTION_DATA(sel)->content = ECORE_X_SELECTION_CONTENT_TEXT; 853 ECORE_X_SELECTION_DATA(sel)->content = ECORE_X_SELECTION_CONTENT_TEXT;
854 ECORE_X_SELECTION_DATA(sel)->data = data;
854 ECORE_X_SELECTION_DATA(sel)->free = _ecore_x_selection_data_text_free; 855 ECORE_X_SELECTION_DATA(sel)->free = _ecore_x_selection_data_text_free;
855 return sel; 856 return sel;
856} /* _ecore_x_selection_parser_text */ 857} /* _ecore_x_selection_parser_text */
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window.c
index 162856480c..8308c3f336 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window.c
@@ -657,6 +657,13 @@ ecore_x_window_size_get(Ecore_X_Window win, int *w, int *h)
657 657
658/** 658/**
659 * Retrieves the geometry of the given window. 659 * Retrieves the geometry of the given window.
660 *
661 * Note that the x & y coordingates are relative to your parent. In
662 * particular for reparenting window managers - relative to you window border.
663 * If you want screen coordinates either walk the window tree to the root,
664 * else for ecore_evas applications see ecore_evas_geometry_get(). Elementary
665 * applications can use elm_win_screen_position_get().
666 *
660 * @param win The given window. 667 * @param win The given window.
661 * @param x Pointer to an integer in which the X position is to be stored. 668 * @param x Pointer to an integer in which the X position is to be stored.
662 * @param y Pointer to an integer in which the Y position is to be stored. 669 * @param y Pointer to an integer in which the Y position is to be stored.
diff --git a/legacy/edje/.gitignore b/legacy/edje/.gitignore
new file mode 100644
index 0000000000..a05bdc18df
--- /dev/null
+++ b/legacy/edje/.gitignore
@@ -0,0 +1,39 @@
1*.o
2*.lo
3*.la
4.deps
5.libs
6.*.swp
7Makefile
8Makefile.in
9aclocal.m4
10autom4te.cache
11compile
12config.guess
13config.h
14config.h.in
15config.h.in~
16config.log
17config.status
18config.sub
19configure
20cscope.out
21depcomp
22doc/edje.dox
23edje.pc
24edje.spec
25install-sh
26libtool
27ltmain.sh
28m4/libtool.m4
29m4/ltoptions.m4
30m4/ltsugar.m4
31m4/ltversion.m4
32m4/lt~obsolete.m4
33missing
34src/bin/edje_cc
35src/bin/edje_convert
36src/bin/edje_decc
37src/bin/edje_player
38stamp-h1
39tags
diff --git a/legacy/edje/src/lib/Edje.h b/legacy/edje/src/lib/Edje.h
index afd51569f4..881b7f6456 100644
--- a/legacy/edje/src/lib/Edje.h
+++ b/legacy/edje/src/lib/Edje.h
@@ -164,7 +164,11 @@ enum _Edje_Cursor
164{ 164{
165 EDJE_CURSOR_MAIN, 165 EDJE_CURSOR_MAIN,
166 EDJE_CURSOR_SELECTION_BEGIN, 166 EDJE_CURSOR_SELECTION_BEGIN,
167 EDJE_CURSOR_SELECTION_END 167 EDJE_CURSOR_SELECTION_END,
168 EDJE_CURSOR_PREEDIT_START,
169 EDJE_CURSOR_PREEDIT_END,
170 EDJE_CURSOR_USER,
171 EDJE_CURSOR_USER_EXTRA,
168 // more later 172 // more later
169}; 173};
170typedef enum _Edje_Cursor Edje_Cursor; 174typedef enum _Edje_Cursor Edje_Cursor;
@@ -515,15 +519,16 @@ typedef void (*Edje_Message_Handler_Cb) (void *data, Evas_Object *obj, Edje_Mess
515 EAPI void edje_object_part_text_select_begin (const Evas_Object *obj, const char *part); 519 EAPI void edje_object_part_text_select_begin (const Evas_Object *obj, const char *part);
516 EAPI void edje_object_part_text_select_extend (const Evas_Object *obj, const char *part); 520 EAPI void edje_object_part_text_select_extend (const Evas_Object *obj, const char *part);
517 521
518 EAPI Eina_Bool edje_object_part_text_cursor_next (const Evas_Object *obj, const char *part, Edje_Cursor cur); 522 EAPI Eina_Bool edje_object_part_text_cursor_next (Evas_Object *obj, const char *part, Edje_Cursor cur);
519 EAPI Eina_Bool edje_object_part_text_cursor_prev (const Evas_Object *obj, const char *part, Edje_Cursor cur); 523 EAPI Eina_Bool edje_object_part_text_cursor_prev (Evas_Object *obj, const char *part, Edje_Cursor cur);
520 EAPI Eina_Bool edje_object_part_text_cursor_up (const Evas_Object *obj, const char *part, Edje_Cursor cur); 524 EAPI Eina_Bool edje_object_part_text_cursor_up (Evas_Object *obj, const char *part, Edje_Cursor cur);
521 EAPI Eina_Bool edje_object_part_text_cursor_down (const Evas_Object *obj, const char *part, Edje_Cursor cur); 525 EAPI Eina_Bool edje_object_part_text_cursor_down (Evas_Object *obj, const char *part, Edje_Cursor cur);
522 EAPI void edje_object_part_text_cursor_begin_set (const Evas_Object *obj, const char *part, Edje_Cursor cur); 526 EAPI void edje_object_part_text_cursor_begin_set (Evas_Object *obj, const char *part, Edje_Cursor cur);
523 EAPI void edje_object_part_text_cursor_end_set (const Evas_Object *obj, const char *part, Edje_Cursor cur); 527 EAPI void edje_object_part_text_cursor_end_set (Evas_Object *obj, const char *part, Edje_Cursor cur);
524 EAPI void edje_object_part_text_cursor_copy (const Evas_Object *obj, const char *part, Edje_Cursor src, Edje_Cursor dst); 528 EAPI void edje_object_part_text_cursor_copy (Evas_Object *obj, const char *part, Edje_Cursor src, Edje_Cursor dst);
525 EAPI void edje_object_part_text_cursor_line_begin_set (const Evas_Object *obj, const char *part, Edje_Cursor cur); 529 EAPI void edje_object_part_text_cursor_line_begin_set (Evas_Object *obj, const char *part, Edje_Cursor cur);
526 EAPI void edje_object_part_text_cursor_line_end_set (const Evas_Object *obj, const char *part, Edje_Cursor cur); 530 EAPI void edje_object_part_text_cursor_line_end_set (Evas_Object *obj, const char *part, Edje_Cursor cur);
531 EAPI Eina_Bool edje_object_part_text_cursor_coord_set (Evas_Object *obj, const char *part, Edje_Cursor cur, Evas_Coord x, Evas_Coord y);
527 EAPI Eina_Bool edje_object_part_text_cursor_is_format_get (const Evas_Object *obj, const char *part, Edje_Cursor cur); 532 EAPI Eina_Bool edje_object_part_text_cursor_is_format_get (const Evas_Object *obj, const char *part, Edje_Cursor cur);
528 EAPI Eina_Bool edje_object_part_text_cursor_is_visible_format_get(const Evas_Object *obj, const char *part, Edje_Cursor cur); 533 EAPI Eina_Bool edje_object_part_text_cursor_is_visible_format_get(const Evas_Object *obj, const char *part, Edje_Cursor cur);
529 EAPI const char *edje_object_part_text_cursor_content_get (const Evas_Object *obj, const char *part, Edje_Cursor cur); 534 EAPI const char *edje_object_part_text_cursor_content_get (const Evas_Object *obj, const char *part, Edje_Cursor cur);
diff --git a/legacy/edje/src/lib/edje_cache.c b/legacy/edje/src/lib/edje_cache.c
index 7fc42edbf6..b95428d0dc 100644
--- a/legacy/edje/src/lib/edje_cache.c
+++ b/legacy/edje/src/lib/edje_cache.c
@@ -544,8 +544,6 @@ edje_file_cache_get(void)
544/** 544/**
545 * @brief Clean the file cache. 545 * @brief Clean the file cache.
546 * 546 *
547 * @return The file cache size.
548 *
549 * This function cleans the file cache entries, but keeps this cache's 547 * This function cleans the file cache entries, but keeps this cache's
550 * size to the last value set. 548 * size to the last value set.
551 * 549 *
@@ -615,8 +613,6 @@ edje_collection_cache_get(void)
615/** 613/**
616 * @brief Clean the collection cache. 614 * @brief Clean the collection cache.
617 * 615 *
618 * @return The collection cache size.
619 *
620 * This function cleans the collection cache, but keeps this cache's 616 * This function cleans the collection cache, but keeps this cache's
621 * size to the last value set. 617 * size to the last value set.
622 * 618 *
diff --git a/legacy/edje/src/lib/edje_entry.c b/legacy/edje/src/lib/edje_entry.c
index 0a92ff5d07..ba2685f259 100644
--- a/legacy/edje/src/lib/edje_entry.c
+++ b/legacy/edje/src/lib/edje_entry.c
@@ -44,6 +44,8 @@ struct _Entry
44 Evas_Object *cursor_fg; 44 Evas_Object *cursor_fg;
45 Evas_Textblock_Cursor *cursor; 45 Evas_Textblock_Cursor *cursor;
46 Evas_Textblock_Cursor *sel_start, *sel_end; 46 Evas_Textblock_Cursor *sel_start, *sel_end;
47 Evas_Textblock_Cursor *cursor_user, *cursor_user_extra;
48 Evas_Textblock_Cursor *preedit_start, *preedit_end;
47 Eina_List *sel; 49 Eina_List *sel;
48 Eina_List *anchors; 50 Eina_List *anchors;
49 Eina_List *anchorlist; 51 Eina_List *anchorlist;
@@ -2152,17 +2154,31 @@ _cursor_get(Edje_Real_Part *rp, Edje_Cursor cur)
2152{ 2154{
2153 Entry *en = rp->entry_data; 2155 Entry *en = rp->entry_data;
2154 if (!en) return NULL; 2156 if (!en) return NULL;
2157
2155 switch (cur) 2158 switch (cur)
2156 { 2159 {
2157 case EDJE_CURSOR_MAIN: 2160 case EDJE_CURSOR_MAIN:
2158 return en->cursor; 2161 return en->cursor;
2159 break;
2160 case EDJE_CURSOR_SELECTION_BEGIN: 2162 case EDJE_CURSOR_SELECTION_BEGIN:
2161 return en->sel_start; 2163 return en->sel_start;
2162 break;
2163 case EDJE_CURSOR_SELECTION_END: 2164 case EDJE_CURSOR_SELECTION_END:
2164 return en->sel_end; 2165 return en->sel_end;
2165 break; 2166 case EDJE_CURSOR_PREEDIT_START:
2167 if (!en->preedit_start)
2168 en->preedit_start = evas_object_textblock_cursor_new(rp->object);
2169 return en->preedit_start;
2170 case EDJE_CURSOR_PREEDIT_END:
2171 if (!en->preedit_end)
2172 en->preedit_end = evas_object_textblock_cursor_new(rp->object);
2173 return en->preedit_end;
2174 case EDJE_CURSOR_USER:
2175 if (!en->cursor_user)
2176 en->cursor_user = evas_object_textblock_cursor_new(rp->object);
2177 return en->cursor_user;
2178 case EDJE_CURSOR_USER_EXTRA:
2179 if (!en->cursor_user_extra)
2180 en->cursor_user_extra = evas_object_textblock_cursor_new(rp->object);
2181 return en->cursor_user_extra;
2166 default: 2182 default:
2167 break; 2183 break;
2168 } 2184 }
@@ -2418,6 +2434,16 @@ _edje_entry_cursor_line_end(Edje_Real_Part *rp, Edje_Cursor cur)
2418 _edje_entry_real_part_configure(rp); 2434 _edje_entry_real_part_configure(rp);
2419} 2435}
2420 2436
2437
2438Eina_Bool
2439_edje_entry_cursor_coord_set(Edje_Real_Part *rp, Edje_Cursor cur,
2440 Evas_Coord x, Evas_Coord y)
2441{
2442 Evas_Textblock_Cursor *c = _cursor_get(rp, cur);
2443 if (!c) return EINA_FALSE;
2444 return evas_textblock_cursor_char_coord_set(c, x, y);
2445}
2446
2421Eina_Bool 2447Eina_Bool
2422_edje_entry_cursor_is_format_get(Edje_Real_Part *rp, Edje_Cursor cur) 2448_edje_entry_cursor_is_format_get(Edje_Real_Part *rp, Edje_Cursor cur)
2423{ 2449{
@@ -2603,3 +2629,5 @@ _edje_entry_imf_event_delete_surrounding_cb(void *data, int type __UNUSED__, voi
2603 return ECORE_CALLBACK_DONE; 2629 return ECORE_CALLBACK_DONE;
2604} 2630}
2605#endif 2631#endif
2632
2633/* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/
diff --git a/legacy/edje/src/lib/edje_private.h b/legacy/edje/src/lib/edje_private.h
index 1a6e5c8fb0..94262c2e63 100644
--- a/legacy/edje/src/lib/edje_private.h
+++ b/legacy/edje/src/lib/edje_private.h
@@ -1731,6 +1731,7 @@ void _edje_entry_cursor_begin(Edje_Real_Part *rp, Edje_Cursor cur);
1731void _edje_entry_cursor_end(Edje_Real_Part *rp, Edje_Cursor cur); 1731void _edje_entry_cursor_end(Edje_Real_Part *rp, Edje_Cursor cur);
1732void _edje_entry_cursor_line_begin(Edje_Real_Part *rp, Edje_Cursor cur); 1732void _edje_entry_cursor_line_begin(Edje_Real_Part *rp, Edje_Cursor cur);
1733void _edje_entry_cursor_line_end(Edje_Real_Part *rp, Edje_Cursor cur); 1733void _edje_entry_cursor_line_end(Edje_Real_Part *rp, Edje_Cursor cur);
1734Eina_Bool _edje_entry_cursor_coord_set(Edje_Real_Part *rp, Edje_Cursor cur, int x, int y);
1734Eina_Bool _edje_entry_cursor_is_format_get(Edje_Real_Part *rp, Edje_Cursor cur); 1735Eina_Bool _edje_entry_cursor_is_format_get(Edje_Real_Part *rp, Edje_Cursor cur);
1735Eina_Bool _edje_entry_cursor_is_visible_format_get(Edje_Real_Part *rp, Edje_Cursor cur); 1736Eina_Bool _edje_entry_cursor_is_visible_format_get(Edje_Real_Part *rp, Edje_Cursor cur);
1736const char *_edje_entry_cursor_content_get(Edje_Real_Part *rp, Edje_Cursor cur); 1737const char *_edje_entry_cursor_content_get(Edje_Real_Part *rp, Edje_Cursor cur);
diff --git a/legacy/edje/src/lib/edje_util.c b/legacy/edje/src/lib/edje_util.c
index 7e49f2aec8..8214c5767f 100644
--- a/legacy/edje/src/lib/edje_util.c
+++ b/legacy/edje/src/lib/edje_util.c
@@ -1854,7 +1854,7 @@ edje_object_part_text_select_extend(const Evas_Object *obj, const char *part)
1854 * @param part The part name 1854 * @param part The part name
1855 */ 1855 */
1856EAPI Eina_Bool 1856EAPI Eina_Bool
1857edje_object_part_text_cursor_next(const Evas_Object *obj, const char *part, Edje_Cursor cur) 1857edje_object_part_text_cursor_next(Evas_Object *obj, const char *part, Edje_Cursor cur)
1858{ 1858{
1859 Edje *ed; 1859 Edje *ed;
1860 Edje_Real_Part *rp; 1860 Edje_Real_Part *rp;
@@ -1877,7 +1877,7 @@ edje_object_part_text_cursor_next(const Evas_Object *obj, const char *part, Edje
1877 * @param part The part name 1877 * @param part The part name
1878 */ 1878 */
1879EAPI Eina_Bool 1879EAPI Eina_Bool
1880edje_object_part_text_cursor_prev(const Evas_Object *obj, const char *part, Edje_Cursor cur) 1880edje_object_part_text_cursor_prev(Evas_Object *obj, const char *part, Edje_Cursor cur)
1881{ 1881{
1882 Edje *ed; 1882 Edje *ed;
1883 Edje_Real_Part *rp; 1883 Edje_Real_Part *rp;
@@ -1900,7 +1900,7 @@ edje_object_part_text_cursor_prev(const Evas_Object *obj, const char *part, Edje
1900 * @param part The part name 1900 * @param part The part name
1901 */ 1901 */
1902EAPI Eina_Bool 1902EAPI Eina_Bool
1903edje_object_part_text_cursor_up(const Evas_Object *obj, const char *part, Edje_Cursor cur) 1903edje_object_part_text_cursor_up(Evas_Object *obj, const char *part, Edje_Cursor cur)
1904{ 1904{
1905 Edje *ed; 1905 Edje *ed;
1906 Edje_Real_Part *rp; 1906 Edje_Real_Part *rp;
@@ -1923,7 +1923,7 @@ edje_object_part_text_cursor_up(const Evas_Object *obj, const char *part, Edje_C
1923 * @param part The part name 1923 * @param part The part name
1924 */ 1924 */
1925EAPI Eina_Bool 1925EAPI Eina_Bool
1926edje_object_part_text_cursor_down(const Evas_Object *obj, const char *part, Edje_Cursor cur) 1926edje_object_part_text_cursor_down(Evas_Object *obj, const char *part, Edje_Cursor cur)
1927{ 1927{
1928 Edje *ed; 1928 Edje *ed;
1929 Edje_Real_Part *rp; 1929 Edje_Real_Part *rp;
@@ -1946,7 +1946,7 @@ edje_object_part_text_cursor_down(const Evas_Object *obj, const char *part, Edje
1946 * @param part The part name 1946 * @param part The part name
1947 */ 1947 */
1948EAPI void 1948EAPI void
1949edje_object_part_text_cursor_begin_set(const Evas_Object *obj, const char *part, Edje_Cursor cur) 1949edje_object_part_text_cursor_begin_set(Evas_Object *obj, const char *part, Edje_Cursor cur)
1950{ 1950{
1951 Edje *ed; 1951 Edje *ed;
1952 Edje_Real_Part *rp; 1952 Edje_Real_Part *rp;
@@ -1968,7 +1968,7 @@ edje_object_part_text_cursor_begin_set(const Evas_Object *obj, const char *part,
1968 * @param part The part name 1968 * @param part The part name
1969 */ 1969 */
1970EAPI void 1970EAPI void
1971edje_object_part_text_cursor_end_set(const Evas_Object *obj, const char *part, Edje_Cursor cur) 1971edje_object_part_text_cursor_end_set(Evas_Object *obj, const char *part, Edje_Cursor cur)
1972{ 1972{
1973 Edje *ed; 1973 Edje *ed;
1974 Edje_Real_Part *rp; 1974 Edje_Real_Part *rp;
@@ -1990,7 +1990,7 @@ edje_object_part_text_cursor_end_set(const Evas_Object *obj, const char *part, E
1990 * @param part The part name 1990 * @param part The part name
1991 */ 1991 */
1992EAPI void 1992EAPI void
1993edje_object_part_text_cursor_copy(const Evas_Object *obj, const char *part, Edje_Cursor src, Edje_Cursor dst) 1993edje_object_part_text_cursor_copy(Evas_Object *obj, const char *part, Edje_Cursor src, Edje_Cursor dst)
1994{ 1994{
1995 Edje *ed; 1995 Edje *ed;
1996 Edje_Real_Part *rp; 1996 Edje_Real_Part *rp;
@@ -2012,7 +2012,7 @@ edje_object_part_text_cursor_copy(const Evas_Object *obj, const char *part, Edje
2012 * @param part The part name 2012 * @param part The part name
2013 */ 2013 */
2014EAPI void 2014EAPI void
2015edje_object_part_text_cursor_line_begin_set(const Evas_Object *obj, const char *part, Edje_Cursor cur) 2015edje_object_part_text_cursor_line_begin_set(Evas_Object *obj, const char *part, Edje_Cursor cur)
2016{ 2016{
2017 Edje *ed; 2017 Edje *ed;
2018 Edje_Real_Part *rp; 2018 Edje_Real_Part *rp;
@@ -2034,7 +2034,7 @@ edje_object_part_text_cursor_line_begin_set(const Evas_Object *obj, const char *
2034 * @param part The part name 2034 * @param part The part name
2035 */ 2035 */
2036EAPI void 2036EAPI void
2037edje_object_part_text_cursor_line_end_set(const Evas_Object *obj, const char *part, Edje_Cursor cur) 2037edje_object_part_text_cursor_line_end_set(Evas_Object *obj, const char *part, Edje_Cursor cur)
2038{ 2038{
2039 Edje *ed; 2039 Edje *ed;
2040 Edje_Real_Part *rp; 2040 Edje_Real_Part *rp;
@@ -2050,6 +2050,36 @@ edje_object_part_text_cursor_line_end_set(const Evas_Object *obj, const char *pa
2050} 2050}
2051 2051
2052/** 2052/**
2053 * Position the given cursor to a X,Y position.
2054 *
2055 * This is frequently used with the user cursor.
2056 *
2057 * @param obj An Edje object.
2058 * @param part The part containing the object.
2059 * @param cur The cursor to adjust.
2060 * @param x X Coordinate.
2061 * @param y Y Coordinate.
2062 * @return True on success, false on error.
2063 */
2064EAPI Eina_Bool
2065edje_object_part_text_cursor_coord_set(Evas_Object *obj, const char *part,
2066 Edje_Cursor cur, Evas_Coord x, Evas_Coord y)
2067{
2068 Edje *ed;
2069 Edje_Real_Part *rp;
2070
2071 ed = _edje_fetch(obj);
2072 if ((!ed) || (!part)) return EINA_FALSE;
2073 rp = _edje_real_part_recursive_get(ed, (char *)part);
2074 if (!rp) return EINA_FALSE;
2075 if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
2076 {
2077 return _edje_entry_cursor_coord_set(rp, cur, x, y);
2078 }
2079 return EINA_FALSE;
2080}
2081
2082/**
2053 * @brief XX 2083 * @brief XX
2054 * 2084 *
2055 * @param obj A valid Evas_Object handle 2085 * @param obj A valid Evas_Object handle
@@ -2109,7 +2139,7 @@ edje_object_part_text_cursor_content_get(const Evas_Object *obj, const char *par
2109 2139
2110 ed = _edje_fetch(obj); 2140 ed = _edje_fetch(obj);
2111 if ((!ed) || (!part)) return NULL; 2141 if ((!ed) || (!part)) return NULL;
2112 rp = _edje_real_part_recursive_get(ed, (char *)part); 2142 rp = _edje_real_part_recursive_get(ed, part);
2113 if (!rp) return NULL; 2143 if (!rp) return NULL;
2114 if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE) 2144 if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
2115 { 2145 {
@@ -4928,3 +4958,6 @@ edje_string_id_get(const Edje_String *es)
4928 if (!es) return NULL; 4958 if (!es) return NULL;
4929 return es->str; 4959 return es->str;
4930} 4960}
4961
4962
4963/* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/