summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas M. Gastal <jgastal@profusion.mobi>2012-09-25 19:47:50 +0000
committerJonas M. Gastal <jgastal@profusion.mobi>2012-09-25 19:47:50 +0000
commit390b4da629d074ae7ce1d721ce8c628000240126 (patch)
tree3bb1e369390dd141808d25a856949a80a1ee1557
parentbed4fbee01b09d595baddaab3ac9140287ff7101 (diff)
edje: Text Cursor Group created in documentation.
Author: Lucas Joia <lucasjoia@profusion.mobi> SVN revision: 77059
-rw-r--r--legacy/edje/src/lib/Edje.h82
1 files changed, 56 insertions, 26 deletions
diff --git a/legacy/edje/src/lib/Edje.h b/legacy/edje/src/lib/Edje.h
index 26b9db2459..d4b77aeafa 100644
--- a/legacy/edje/src/lib/Edje.h
+++ b/legacy/edje/src/lib/Edje.h
@@ -1232,18 +1232,6 @@ EAPI Eina_Bool edje_object_preload (Evas_Object *obj, Eina_Bool c
1232 * @{ 1232 * @{
1233 */ 1233 */
1234 1234
1235typedef enum _Edje_Cursor
1236{
1237 EDJE_CURSOR_MAIN,
1238 EDJE_CURSOR_SELECTION_BEGIN,
1239 EDJE_CURSOR_SELECTION_END,
1240 EDJE_CURSOR_PREEDIT_START,
1241 EDJE_CURSOR_PREEDIT_END,
1242 EDJE_CURSOR_USER,
1243 EDJE_CURSOR_USER_EXTRA,
1244 // more later
1245} Edje_Cursor;
1246
1247struct _Edje_Entry_Change_Info 1235struct _Edje_Entry_Change_Info
1248{ 1236{
1249 union { 1237 union {
@@ -2936,20 +2924,6 @@ EAPI Eina_Bool edje_object_part_text_item_geometry_get (const Evas_
2936EAPI void edje_object_part_text_user_insert (const Evas_Object *obj, const char *part, const char *text); 2924EAPI void edje_object_part_text_user_insert (const Evas_Object *obj, const char *part, const char *text);
2937 2925
2938/** 2926/**
2939 * @brief Returns the cursor geometry of the part relative to the edje
2940 * object.
2941 *
2942 * @param obj A valid Evas_Object handle
2943 * @param part The part name
2944 * @param x Cursor X position
2945 * @param y Cursor Y position
2946 * @param w Cursor width
2947 * @param h Cursor height
2948 *
2949 */
2950EAPI void edje_object_part_text_cursor_geometry_get (const Evas_Object *obj, const char *part, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
2951
2952/**
2953 * @brief Set the function that provides item objects for named items in an edje entry text 2927 * @brief Set the function that provides item objects for named items in an edje entry text
2954 * 2928 *
2955 * @param obj A valid Evas Object handle 2929 * @param obj A valid Evas Object handle
@@ -3033,6 +3007,38 @@ EAPI void edje_object_part_text_select_begin (const Evas_
3033 */ 3007 */
3034EAPI void edje_object_part_text_select_extend (const Evas_Object *obj, const char *part); 3008EAPI void edje_object_part_text_select_extend (const Evas_Object *obj, const char *part);
3035 3009
3010/**
3011 * @}
3012 */
3013
3014/**
3015 * @defgroup Edje_Text_Cursor Edje Text Cursor
3016 *
3017 * @brief Functions that deal with cursor in text parts
3018 *
3019 * Cursor is a known functionality for texts in the whole computational
3020 * world. It marks a position in the text from where one may want
3021 * to make a insertion, deletion or selection.
3022 *
3023 * Edje is responsible for handling this functionality through the
3024 * following functions.
3025 *
3026 * @ingroup Edje_Part_Text
3027 *
3028 * @{
3029 */
3030
3031typedef enum _Edje_Cursor
3032{
3033 EDJE_CURSOR_MAIN,
3034 EDJE_CURSOR_SELECTION_BEGIN,
3035 EDJE_CURSOR_SELECTION_END,
3036 EDJE_CURSOR_PREEDIT_START,
3037 EDJE_CURSOR_PREEDIT_END,
3038 EDJE_CURSOR_USER,
3039 EDJE_CURSOR_USER_EXTRA,
3040 // more later
3041} Edje_Cursor;
3036 3042
3037/** 3043/**
3038 * @brief Advances the cursor to the next cursor position. 3044 * @brief Advances the cursor to the next cursor position.
@@ -3194,6 +3200,30 @@ EAPI void edje_object_part_text_cursor_pos_set (Evas_Ob
3194EAPI int edje_object_part_text_cursor_pos_get (const Evas_Object *obj, const char *part, Edje_Cursor cur); 3200EAPI int edje_object_part_text_cursor_pos_get (const Evas_Object *obj, const char *part, Edje_Cursor cur);
3195 3201
3196/** 3202/**
3203 * @brief Returns the cursor geometry of the part relative to the edje
3204 * object.
3205 *
3206 * @param obj A valid Evas_Object handle
3207 * @param part The part name
3208 * @param x Cursor X position
3209 * @param y Cursor Y position
3210 * @param w Cursor width
3211 * @param h Cursor height
3212 *
3213 */
3214EAPI void edje_object_part_text_cursor_geometry_get (const Evas_Object *obj, const char *part, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
3215
3216/**
3217 * @}
3218 */
3219
3220/**
3221 * @addtogroup Edje_Part_Text
3222 *
3223 * @{
3224 */
3225
3226/**
3197 * @brief Reset the input method context if needed. 3227 * @brief Reset the input method context if needed.
3198 * 3228 *
3199 * This can be necessary in the case where modifying the buffer would confuse on-going input method behavior 3229 * This can be necessary in the case where modifying the buffer would confuse on-going input method behavior