Tizen Native API
5.0
|
Functions that deal with Size Classes.
Sometimes we want to change the size of two or more parts equally and that's when we use size classes.
If one or more parts are assigned with a size class, when we set attributes (minw etc.) to this class will update all these parts with the new attributes. Setting values to a size class at a process level will affect all parts with that size class, while at object level will affect only the parts inside an specified object.
@ {
Functions | |
Eina_Bool | edje_size_class_set (const char *size_class, Evas_Coord minw, Evas_Coord minh, Evas_Coord maxw, Evas_Coord maxh) |
Sets the Edje size class. | |
Eina_Bool | edje_size_class_get (const char *size_class, Evas_Coord *minw, Evas_Coord *minh, Evas_Coord *maxw, Evas_Coord *maxh) |
Gets the Edje size class. | |
void | edje_size_class_del (const char *size_class) |
Deletes the size class. | |
Eina_List * | edje_size_class_list (void) |
Lists size classes. | |
Eina_Iterator * | edje_size_class_active_iterator_new (void) |
Iterates over all active classes of an application. | |
Eina_Iterator * | edje_mmap_size_class_iterator_new (Eina_File *f) |
Iterates over all size classes provided by an Edje file. |
Function Documentation
Iterates over all size classes provided by an Edje file.
- Parameters:
-
f The mapped edje file.
- Returns:
- an iterator of Edje_Size_Class provided by the Edje file.
- Since (EFL) :
- 1.17
- Since :
- 3.0
Iterates over all active classes of an application.
- Returns:
- An iterator of Edje_Size_Class of the currently active size class
This function only iterates over the Edje_Size_Class in use by an application.
- Since (EFL) :
- 1.17
- Since :
- 3.0
void edje_size_class_del | ( | const char * | size_class | ) |
Deletes the size class.
- Parameters:
-
size_class The size class name
This function deletes any values at the process level for the specified size class.
- Since (EFL) :
- 1.17
- Since :
- 3.0
Eina_Bool edje_size_class_get | ( | const char * | size_class, |
Evas_Coord * | minw, | ||
Evas_Coord * | minh, | ||
Evas_Coord * | maxw, | ||
Evas_Coord * | maxh | ||
) |
Gets the Edje size class.
- Parameters:
-
size_class The size class name minw The min width minh The min height maxw The max width maxh The max height
- Returns:
EINA_TRUE
on success, orEINA_FALSE
on error
This function gets the min and max size from the specified Edje size class.
- Since (EFL) :
- 1.17
- Since :
- 3.0
Eina_List* edje_size_class_list | ( | void | ) |
Lists size classes.
- Returns:
- A list of size class names (strings). These strings are stringshares and the list must be eina_stringshare_del()'ed by the caller.
This function lists all size classes known about by the current process.
- Since (EFL) :
- 1.17
- Since :
- 3.0
Eina_Bool edje_size_class_set | ( | const char * | size_class, |
Evas_Coord | minw, | ||
Evas_Coord | minh, | ||
Evas_Coord | maxw, | ||
Evas_Coord | maxh | ||
) |
Sets the Edje size class.
- Parameters:
-
size_class The size class name minw The min width minh The min height maxw The max width maxh The max height
- Returns:
EINA_TRUE
on success, orEINA_FALSE
on error
This function updates all Edje members at the process level which belong to this size class with the new min and max attributes.
- See also:
- edje_size_class_get().
- Since (EFL) :
- 1.17
- Since :
- 3.0