Functions |
void | edje_object_size_min_get (const Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh) |
| Gets the minimum size specified, as an EDC property, for a given edje object.
|
void | edje_object_update_hints_set (Evas_Object *obj, Eina_Bool update) |
| Sets whether Edje is going to update size hints on itself.
|
Eina_Bool | edje_object_update_hints_get (Evas_Object *obj) |
| Gets whether Edje is going to update size hints on itself.
|
void | edje_object_size_max_get (const Evas_Object *obj, Evas_Coord *maxw, Evas_Coord *maxh) |
| Gets the maximum size specified, as an EDC property, for a given edje object.
|
void | edje_object_calc_force (Evas_Object *obj) |
| Forces a Size/Geometry calculation.
|
void | edje_object_size_min_calc (Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh) |
| Calculates the minimum required size for a given edje object.
|
Eina_Bool | edje_object_parts_extends_calc (Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) |
| Calculates the geometry of the region, relative to a given edje object's area, occupied by all parts in the object.
|
void | edje_object_size_min_restricted_calc (Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh, Evas_Coord restrictedw, Evas_Coord restrictedh) |
| Calculates the minimum required size for a given edje object.
|
This group discusses functions that deal with an object's geometry.
Function Documentation
Forces a Size/Geometry calculation.
This forces the object obj to recalculate the layout regardless of freeze/thaw.
- Since :
- 2.3
- Parameters:
-
[in] | obj | A valid Evas_Object handle |
Calculates the geometry of the region, relative to a given edje object's area, occupied by all parts in the object.
This function gets the geometry of the rectangle that is equal to the area required to group all parts in obj's group/collection. The x and y coordinates are relative to the top left corner of the whole obj object's area. Parts placed out of the group's boundaries are also taken into account, so that x and y may be negative.
- Since :
- 2.3
- Parameters:
-
[in] | obj | A handle to an edje object |
[out] | x | A pointer to a variable to store the parts region's x coordinate |
[out] | y | A pointer to a variable to store the parts region's y coordinate |
[out] | w | A pointer to a variable to store the parts region's width |
[out] | h | A pointer to a variable to store the parts region's height |
- Returns:
- EINA_TRUE if success, otherwise EINA_FALSE
Gets the maximum size specified, as an EDC property, for a given edje object.
This function retrieves the obj object's maximum size values, as declared in its EDC group definition. Maximum size groups have the following syntax:
- Since :
- 2.3
collections {
group {
name: "a_group";
max: 100 100;
}
}
where one declares a maximum size of 100 pixels for both width and height. Those are (hint) values that should be respected when the given object/group is to be controlled by a given container object (e.g. an edje object being "swallowed" into a given SWALLOW
type part, as in edje_object_part_swallow()). Check the complete syntax reference for EDC files.
- Parameters:
-
[in] | obj | A handle to an edje object |
[out] | maxw | A pointer to a variable to store the maximum width |
[out] | maxh | A pointer to a variable to store the maximum height |
- See also:
- edje_object_size_min_get()
Calculates the minimum required size for a given edje object.
- Since :
- 2.3
- Parameters:
-
[in] | obj | A handle to an edje object |
[out] | minw | A pointer to a variable to store the minimum required width |
[out] | minh | A pointer to a variable to store the minimum required height |
Gets the minimum size specified, as an EDC property, for a given edje object.
This function retrieves the obj object's minimum size values, as declared in its EDC group definition. Minimum size groups have the following syntax:
- Since :
- 2.3
collections {
group {
name: "a_group";
min: 100 100;
}
}
where one declares a minimum size of 100 pixels for both width and height. Those are (hint) values that should be respected when the given object/group is to be controlled by a given container object (e.g. an edje object being "swallowed" into a given SWALLOW
type part, as in edje_object_part_swallow()). Check the complete syntax reference for EDC files.
- Parameters:
-
[in] | obj | A handle to an edje object |
[out] | minw | A pointer to a variable to store the minimum width |
[out] | minh | A pointer to a variable to store the minimum height |
- See also:
- edje_object_size_max_get()
Calculates the minimum required size for a given edje object.
- Since :
- 2.3
- Parameters:
-
[in] | obj | A handle to an edje object |
[out] | minw | A pointer to a variable to store the minimum required width |
[out] | minh | A pointer to a variable to store the minimum required width |
[in] | restrictedw | Minimum value for an object's calculated (minimum) width |
[in] | restrictedh | Minimum value for an object's calculated (minimum) height |
Gets whether Edje is going to update size hints on itself.
- Since :
- 2.3
- Parameters:
-
[in] | obj | A handle to an edje object |
- Returns:
true
if it does, otherwise false
if it doesn't
Sets whether Edje is going to update size hints on itself.
- Since :
- 2.3
- Parameters:
-
[in] | obj | A handle to an edje object |
[in] | update | A boolean value that indicates whether to update the size hints |