Tizen Native API
|
Functions | |
void | edje_object_text_change_cb_set (Evas_Object *obj, Edje_Text_Change_Cb func, void *data) |
Sets the object text callback. | |
Eina_Bool | edje_object_part_text_set (Evas_Object *obj, const char *part, const char *text) |
Sets the text for an object part. | |
Eina_Bool | edje_object_part_text_escaped_set (Evas_Object *obj, const char *part, const char *text) |
Sets the text for an object part, but converts HTML escapes to UTF8. | |
const char * | edje_object_part_text_get (const Evas_Object *obj, const char *part) |
Gets the text of the object part. | |
void | edje_object_part_text_style_user_push (Evas_Object *obj, const char *part, const char *style) |
Sets the style of the textblock part. | |
const char * | edje_object_part_text_style_user_peek (const Evas_Object *obj, const char *part) |
Gets the text of the object part. | |
void | edje_object_part_text_style_user_pop (Evas_Object *obj, const char *part) |
Deletes the top style form of the the user style stack. | |
Eina_Bool | edje_object_part_text_unescaped_set (Evas_Object *obj, const char *part, const char *text_to_escape) |
Sets the raw (non escaped) text for an object part. | |
char * | edje_object_part_text_unescaped_get (const Evas_Object *obj, const char *part) |
Gets the text of the object part, without escaping. | |
void | edje_object_part_text_insert (Evas_Object *obj, const char *part, const char *text) |
Inserts text for an object part. | |
void | edje_object_part_text_append (Evas_Object *obj, const char *part, const char *text) |
Inserts text for an object part. | |
const Eina_List * | edje_object_part_text_anchor_list_get (const Evas_Object *obj, const char *part) |
Gets a list of char anchor names. | |
const Eina_List * | edje_object_part_text_anchor_geometry_get (const Evas_Object *obj, const char *part, const char *anchor) |
Gets a list of Evas_Textblock_Rectangle anchor rectangles. | |
const Eina_List * | edje_object_part_text_item_list_get (const Evas_Object *obj, const char *part) |
Gets a list of char item names. | |
Eina_Bool | edje_object_part_text_item_geometry_get (const Evas_Object *obj, const char *part, const char *item, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch) |
Gets the item geometry. | |
void | edje_object_part_text_user_insert (const Evas_Object *obj, const char *part, const char *text) |
Inserts text as if the user has inserted it. | |
Typedefs | |
typedef void(* | Edje_Text_Change_Cb )(void *data, Evas_Object *obj, const char *part) |
Edje text change callback prototype. |
This group discusses functions that deal with parts of type text.
const Eina_List* edje_object_part_text_anchor_geometry_get | ( | const Evas_Object * | obj, |
const char * | part, | ||
const char * | anchor | ||
) |
Gets a list of Evas_Textblock_Rectangle anchor rectangles.
This function returns a list of Evas_Textblock_Rectangle anchor rectangles.
[in] | obj | A valid Evas_Object handle |
[in] | part | The part name |
[in] | anchor | The anchor name |
const Eina_List* edje_object_part_text_anchor_list_get | ( | const Evas_Object * | obj, |
const char * | part | ||
) |
Gets a list of char anchor names.
This function returns a list of char anchor names.
[in] | obj | A valid Evas_Object handle |
[in] | part | The part name |
void edje_object_part_text_append | ( | Evas_Object * | obj, |
const char * | part, | ||
const char * | text | ||
) |
Inserts text for an object part.
This function inserts the text for an object part at the end. It does not move the cursor.
[in] | obj | A valid Evas Object handle |
[in] | part | The part name |
[in] | text | The text string |
Eina_Bool edje_object_part_text_escaped_set | ( | Evas_Object * | obj, |
const char * | part, | ||
const char * | text | ||
) |
Sets the text for an object part, but converts HTML escapes to UTF8.
This converts the given string text to UTF8 assuming it contains HTML style escapes like "&" and "©", IF the part is of type TEXT, as opposed to TEXTBLOCK.
[in] | obj | A valid Evas Object handle |
[in] | part | The part name |
[in] | text | The text string |
const char* edje_object_part_text_get | ( | const Evas_Object * | obj, |
const char * | part | ||
) |
Gets the text of the object part.
This function returns the text associated with the object part.
[in] | obj | A valid Evas_Object handle |
[in] | part | The part name |
void edje_object_part_text_insert | ( | Evas_Object * | obj, |
const char * | part, | ||
const char * | text | ||
) |
Inserts text for an object part.
This function inserts the text for an object part just before the cursor position.
[in] | obj | A valid Evas Object handle |
[in] | part | The part name |
[in] | text | The text string |
Eina_Bool edje_object_part_text_item_geometry_get | ( | const Evas_Object * | obj, |
const char * | part, | ||
const char * | item, | ||
Evas_Coord * | cx, | ||
Evas_Coord * | cy, | ||
Evas_Coord * | cw, | ||
Evas_Coord * | ch | ||
) |
Gets the item geometry.
This function returns a list of Evas_Textblock_Rectangle item rectangles.
[in] | obj | A valid Evas_Object handle |
[in] | part | The part name |
[in] | item | The item name |
[out] | cx | The item's x coordinate (relative to the entry part) |
[out] | cy | The item's y coordinate (relative to the entry part) |
[out] | cw | The item width |
[out] | ch | The item height |
1
if the item exists, otherwise 0
if it does not const Eina_List* edje_object_part_text_item_list_get | ( | const Evas_Object * | obj, |
const char * | part | ||
) |
Gets a list of char item names.
This function returns a list of char item names.
[in] | obj | A valid Evas_Object handle |
[in] | part | The part name |
Eina_Bool edje_object_part_text_set | ( | Evas_Object * | obj, |
const char * | part, | ||
const char * | text | ||
) |
Sets the text for an object part.
[in] | obj | A valid Evas Object handle |
[in] | part | The part name |
[in] | text | The text string |
const char* edje_object_part_text_style_user_peek | ( | const Evas_Object * | obj, |
const char * | part | ||
) |
Gets the text of the object part.
This function returns the style associated with the textblock part.
[in] | obj | A valid Evas_Object handle |
[in] | part | The part name |
void edje_object_part_text_style_user_pop | ( | Evas_Object * | obj, |
const char * | part | ||
) |
Deletes the top style form of the the user style stack.
[in] | obj | A valid Evas_Object handle |
[in] | part | The part name |
void edje_object_part_text_style_user_push | ( | Evas_Object * | obj, |
const char * | part, | ||
const char * | style | ||
) |
Sets the style of the textblock part.
This function sets the style associated with the textblock part
[in] | obj | A valid Evas_Object handle |
[in] | part | The part name |
[in] | style | The style to set (textblock conventions) |
char* edje_object_part_text_unescaped_get | ( | const Evas_Object * | obj, |
const char * | part | ||
) |
Gets the text of the object part, without escaping.
This function is the counterpart of edje_object_part_text_unescaped_set(). Note that the result is newly allocated memory and should be released with free() when done.
[in] | obj | A valid Evas_Object handle |
[in] | part | The part name |
NULL
on errorsEina_Bool edje_object_part_text_unescaped_set | ( | Evas_Object * | obj, |
const char * | part, | ||
const char * | text_to_escape | ||
) |
Sets the raw (non escaped) text for an object part.
This funciton does escape for you if it is a TEXTBLOCK part, that is, if text contains tags, these tags are not interpreted/parsed by the TEXTBLOCK.
[in] | obj | A valid Evas Object handle |
[in] | part | The part name |
[in] | text_to_escape | The text string |
void edje_object_part_text_user_insert | ( | const Evas_Object * | obj, |
const char * | part, | ||
const char * | text | ||
) |
Inserts text as if the user has inserted it.
[in] | obj | A valid Evas_Object handle |
[in] | part | The part name |
[in] | text | The text string |
void edje_object_text_change_cb_set | ( | Evas_Object * | obj, |
Edje_Text_Change_Cb | func, | ||
void * | data | ||
) |
Sets the object text callback.
This function sets the callback to be called when the text changes.
[in] | obj | A valid Evas_Object handle |
[in] | func | The callback function to handle the text change |
[in] | data | The data associated with the callback function |