Tizen Native API
|
This group discusses functions that deal with Text Classes.
- Remarks:
- Sometimes we want to change the text of two or more parts equally and that's when we use text classes.
- If one or more parts are assigned with a text class, when we set font attributes to this class it updates all these parts with the new font attributes. Setting values to a text class at a process level affects all parts within that text class, while at the object level it only affects the parts inside a specified object.
Functions | |
Eina_Bool | edje_text_class_set (const char *text_class, const char *font, Evas_Font_Size size) |
Sets the Edje text class. | |
Eina_Bool | edje_text_class_get (const char *text_class, char **font, Evas_Font_Size *size) |
Gets the Edje text class. | |
void | edje_text_class_del (const char *text_class) |
Deletes the text class. | |
Eina_List * | edje_text_class_list (void) |
Lists the text classes. | |
Eina_Bool | edje_object_text_class_set (Evas_Object *obj, const char *text_class, const char *font, Evas_Font_Size size) |
Sets the Edje text class. | |
Eina_Bool | edje_object_text_class_get (const Evas_Object *obj, const char *text_class, char **font, Evas_Font_Size *size) |
Gets the Edje text class. |
Function Documentation
Eina_Bool edje_object_text_class_get | ( | const Evas_Object * | obj, |
const char * | text_class, | ||
char ** | font, | ||
Evas_Font_Size * | size | ||
) |
Gets the Edje text class.
This function gets the text values for a process level text class.
- Since :
- 2.3.1
- Parameters:
-
[in] obj A valid Evas_Object handle [in] text_class The text class name [out] font The font name
This string is a stringshare and must be freed by the caller using free().[out] size The font size
- Returns:
- EINA_TRUE if found, otherwise EINA_FALSE if not found
- See also:
- edje_text_class_set()
Eina_Bool edje_object_text_class_set | ( | Evas_Object * | obj, |
const char * | text_class, | ||
const char * | font, | ||
Evas_Font_Size | size | ||
) |
Sets the Edje text class.
This function sets the text class for Edje.
- Since :
- 2.3.1
- Parameters:
-
[in] obj A valid Evas_Object handle [in] text_class The text class name [in] font The font name [in] size The font Size
- Returns:
- EINA_TRUE on success, otherwise EINA_FALSE on error
void edje_text_class_del | ( | const char * | text_class | ) |
Deletes the text class.
This function deletes any values at the process level for the specified text class.
- Since :
- 2.3.1
- Parameters:
-
[in] text_class The text class name string
Eina_Bool edje_text_class_get | ( | const char * | text_class, |
char ** | font, | ||
Evas_Font_Size * | size | ||
) |
Gets the Edje text class.
This function gets the text values for a process level text class.
- Since :
- 2.3.1
- Parameters:
-
[in] text_class The text class name [out] font The font name
This string is a stringshare and must be freed by the caller using free().[out] size The font size
- Returns:
- EINA_TRUE if found, otherwise EINA_FALSE if not found
- See also:
- edje_text_class_set()
Eina_List* edje_text_class_list | ( | void | ) |
Lists the text classes.
This function lists all the text classes known by the current process.
- Since :
- 2.3.1
- Returns:
- A list of text class names (strings)
These strings are stringshares and the list must be freed by the caller using free().
Eina_Bool edje_text_class_set | ( | const char * | text_class, |
const char * | font, | ||
Evas_Font_Size | size | ||
) |
Sets the Edje text class.
This function updates all edje members at the process level which belong to this text class with the new font attributes. If the size is 0 then the font size is kept as the previous size. If the size is less then 0 then the font size is calculated as a percentage. For example, if the size is -50, then the font size is scaled to half of the original size and if the size is -10 then the font size is scaled by 0.1x.
- Since :
- 2.3.1
- Parameters:
-
[in] text_class The text class name [in] font The font name [in] size The font size
- Returns:
- EINA_TRUE on success, otherwise EINA_FALSE on error
- See also:
- edje_text_class_get()