These functions provide checks for if a Evas_Object is an Elementary widget, the possibility of getting a widget's parent, top level parent and getting a string representation of a widget's type.
Function Documentation
Get the first parent of the given object that is an Elementary widget.
- Parameters:
-
obj | the Elementary object to query parent from. |
- Returns:
- the parent object that is an Elementary widget, or
NULL
, if it was not found.
Use this to query for an object's parent widget.
- Note:
- Most of Elementary users wouldn't be mixing non-Elementary smart objects in the objects tree of an application, as this is an advanced usage of Elementary with Evas. So, except for the application's window, which is the root of that tree, all other objects would have valid Elementary widget parents.
- Since :
- 2.3
- Examples:
- bg_example_03.c, genlist_example_03.c, genlist_example_04.c, genlist_example_05.c, layout_example_01.c, and transit_example_03.c.
Get the top level parent of an Elementary widget.
- Parameters:
-
- Returns:
- The top level Elementary widget, or
NULL
if parent cannot be found.
- Since :
- 2.3
- Examples:
- inwin_example.c.
Check if the given Evas Object is an Elementary widget.
- Parameters:
-
- Returns:
EINA_TRUE
if it is an elementary widget variant, EINA_FALSE
otherwise
- Since :
- 2.3
Get the string that represents this Elementary widget.
- Parameters:
-
- Returns:
- Elementary widget name, or
NULL
if not a valid widget.
- Since :
- 2.3