Tizen Native API
|
Functions | |
Eina_Bool | edje_text_class_set (const char *text_class, const char *font, Evas_Font_Size size) |
Set the Edje text class. | |
Eina_Bool | edje_text_class_get (const char *text_class, const char **font, Evas_Font_Size *size) |
Get the font and the font size from Edje text class. | |
void | edje_text_class_del (const char *text_class) |
Delete the text class. | |
Eina_List * | edje_text_class_list (void) |
List text classes. | |
Eina_Bool | edje_object_text_class_set (Edje_Object *obj, const char *text_class, const char *font, Evas_Font_Size size) |
Sets Edje text class. | |
Eina_Bool | edje_object_text_class_get (const Edje_Object *obj, const char *text_class, const char **font, Evas_Font_Size *size) |
Gets font and font size from edje text class. |
Functions that deal with Text Classes.
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 will update all these parts with the new font attributes. Setting values to a text class at a process level will affect all parts with that text class, while at object level will affect only the parts inside an specified object.
Function Documentation
Eina_Bool edje_object_text_class_get | ( | const Edje_Object * | obj, |
const char * | text_class, | ||
const char ** | font, | ||
Evas_Font_Size * | size | ||
) |
Gets font and font size from edje text class.
- Since :
- 2.3
- Returns:
EINA_TRUE
, on success orEINA_FALSE
, on error
- Remarks:
- This function gets the font and the font size from the object text class.
- Parameters:
-
[in] obj The edje object [in] text_class The text class name [out] font Font name [out] size Font Size
Eina_Bool edje_object_text_class_set | ( | Edje_Object * | obj, |
const char * | text_class, | ||
const char * | font, | ||
Evas_Font_Size | size | ||
) |
Sets Edje text class.
- Since :
- 2.3
- Returns:
EINA_TRUE
, on success orEINA_FALSE
, on error
This function sets the text class for the Edje.
- Parameters:
-
[in] obj The edje object [in] text_class The text class name [in] font Font name [in] size Font Size
void edje_text_class_del | ( | const char * | text_class | ) |
Delete the text class.
- Since :
- 2.3
- Parameters:
-
[in] text_class The text class name string
- Remarks:
- This function deletes any values at the process level for the specified text class.
Eina_Bool edje_text_class_get | ( | const char * | text_class, |
const char ** | font, | ||
Evas_Font_Size * | size | ||
) |
Get the font and the font size from Edje text class.
- Since :
- 2.3
- Parameters:
-
[in] text_class The text class name [out] font The font name [out] size The font size
- Returns:
EINA_TRUE
, on success orEINA_FALSE
, on error
- Remarks:
- This function gets the font and the font name from the specified Edje text class.
- See also:
- edje_text_class_set().
Eina_List* edje_text_class_list | ( | void | ) |
List text classes.
- Since :
- 2.3
- Returns:
- A list of text class names (strings). These strings are stringshares and the list must be free()'d by the caller.
- Remarks:
- This function lists all text classes known about by the current process.
Eina_Bool edje_text_class_set | ( | const char * | text_class, |
const char * | font, | ||
Evas_Font_Size | size | ||
) |
Set the Edje text class.
- Since :
- 2.3
- Parameters:
-
[in] text_class The text class name [in] font The font name [in] size The font size
- Returns:
EINA_TRUE
, on success orEINA_FALSE
, on error
- Remarks:
- 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 will be kept with the previous size. If thesize
is less then 0 then the font size will be calculated in the percentage. For example, if thesize
is -50, then the font size will be scaled to half of the original size and if thesize
is -10 then the font size will be scaled as much as 0.1x.
- See also:
- edje_text_class_get().