Tizen Native API
|
Functions | |
Eina_List * | edje_object_access_part_list_get (const Edje_Object *obj) |
Retrieve a list all accessibility part names. | |
Eina_Bool | edje_object_part_geometry_get (const Edje_Object *obj, const char *part, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) |
Retrieve the geometry of a given Edje part, in a given Edje object's group definition, relative to the object's area | |
const Evas_Object * | edje_object_part_object_get (const Edje_Object *obj, const char *part) |
Get a handle to the Evas object implementing a given Edje part, in an Edje object. | |
Eina_Bool | edje_object_part_exists (const Edje_Object *obj, const char *part) |
Check if an Edje part exists in a given Edje object's group definition. | |
Typedefs | |
typedef enum _Edje_Part_Type | Edje_Part_Type |
Functions that deal with layout components.
Parts are layout components, but as a layout, they are objects too.
There are several types of parts, these types can be divided into two main categories, the first being containers. Containers are parts that are in effect a group of elements. The second group is that of the elements, these part types may not contain others.
This section has some functions specific for some types and others that could be applied to any type.
Typedef Documentation
All possible "part" types in Edje
Enumeration Type Documentation
enum _Edje_Part_Type |
- Enumerator:
Function Documentation
Eina_List* edje_object_access_part_list_get | ( | const Edje_Object * | obj | ) |
Retrieve a list all accessibility part names.
- Since :
- 2.3
- Returns:
- A list all accessibility part names on
obj
- Since (EFL) :
- 1.7.0
- Parameters:
-
[in] obj The edje object
Eina_Bool edje_object_part_exists | ( | const Edje_Object * | obj, |
const char * | part | ||
) |
Check if an Edje part exists in a given Edje object's group definition.
- Since :
- 2.3
- Returns:
EINA_TRUE
, if the Edje part exists inobj's
group orEINA_FALSE
, otherwise (and on errors)
- Remarks:
- This function returns if a given part exists in the Edje group bound to object
obj
(with edje_object_file_set()). -
This call is useful, for example, when one could expect or not a given GUI element, depending on the theme applied to
obj
.
- Parameters:
-
[in] obj The edje object [in] part The part's name to check for existence in obj's
group
Eina_Bool edje_object_part_geometry_get | ( | const Edje_Object * | obj, |
const char * | part, | ||
Evas_Coord * | x, | ||
Evas_Coord * | y, | ||
Evas_Coord * | w, | ||
Evas_Coord * | h | ||
) |
Retrieve the geometry of a given Edje part, in a given Edje object's group definition, relative to the object's area
- Since :
- 2.3
- Remarks:
- This function gets the geometry of an Edje part within its group. The
x
andy
coordinates are relative to the top left corner of the wholeobj
object's area. -
Use
NULL
pointers on the geometry components you're not interested in: they'll be ignored by the function. -
On failure, this function will make all non-
NULL
geometry pointers' pointed variables be set to zero.
- Parameters:
-
[in] obj The edje object [in] part The Edje part's name [out] x A pointer to a variable where to store the part's x coordinate [out] y A pointer to a variable where to store the part's y coordinate [out] w A pointer to a variable where to store the part's width [out] h A pointer to a variable where to store the part's height
const Evas_Object* edje_object_part_object_get | ( | const Edje_Object * | obj, |
const char * | part | ||
) |
Get a handle to the Evas object implementing a given Edje part, in an Edje object.
- Since :
- 2.3
- Returns:
- A pointer to the Evas object implementing the given part, or
NULL
on failure (e.g. the given part doesn't exist)
- Remarks:
- This function gets a pointer of the Evas object corresponding to a given part in the
obj
object's group. -
You should never modify the state of the returned object (with
evas_object_move()
orevas_object_hide()
for example), because it's meant to be managed by Edje, solely. You are safe to query information about its current state (withevas_object_visible_get()
orevas_object_color_get()
for example), though.
- Parameters:
-
[in] obj The edje object [in] part The Edje part's name