Functions that allows finding objects by their position, name or other properties. More...
Functions | |
EOAPI Evas_Object * | evas_canvas_focus_get (void) |
Retrieve the object that currently has focus. More... | |
EOAPI Evas_Object * | evas_canvas_object_name_find (const char *name) |
Retrieves the object on the given evas with the given name. More... | |
::evas::object | evas::canvas::object_name_find (::efl::eina::string_view name_) const |
Retrieves the object on the given evas with the given name. More... | |
::evas::object | evas::canvas::focus_get () const |
Retrieve the object that currently has focus. More... | |
Evas_Object * | evas_focus_get (const Evas_Canvas *obj) |
Retrieve the object that currently has focus. More... | |
Evas_Object * | evas_object_name_find (const Evas_Canvas *obj, const char *name) |
Retrieves the object on the given evas with the given name. More... | |
EOAPI Evas_Object * | evas_obj_name_child_find (const char *name, int recurse) |
Retrieves the object from children of the given object with the given name. More... | |
::evas::object | evas::object::name_child_find (::efl::eina::string_view name_, int recurse_) const |
Retrieves the object from children of the given object with the given name. More... | |
Evas_Object * | evas_object_name_child_find (const Evas_Object *obj, const char *name, int recurse) |
Retrieves the object from children of the given object with the given name. More... | |
Evas_Object * | evas_object_top_at_pointer_get (const Evas *e) |
Retrieve the Evas object stacked at the top at the position of the mouse cursor, over a given canvas. More... | |
Functions that allows finding objects by their position, name or other properties.
EOAPI Evas_Object* evas_canvas_focus_get | ( | void | ) |
Retrieve the object that currently has focus.
NULL
if there is not one.Evas can have (at most) one of its objects focused at a time. Focused objects will be the ones having key events delivered to, which the programmer can act upon by means of evas_object_event_callback_add() usage.
This call returns the object that currently has focus on the canvas e
or NULL
, if none.
Example:
In this example the event_info
is exactly a pointer to that focused rectangle. See the full example.
Referenced by evas_focus_get().
EOAPI Evas_Object* evas_canvas_object_name_find | ( | const char * | name | ) |
Retrieves the object on the given evas with the given name.
NULL
.This looks for the evas object given a name by evas_object_name_set(). If the name is not unique canvas-wide, then which one of the many objects with that name is returned is undefined, so only use this if you can ensure the object name is unique.
[in] | name | The given name. |
Referenced by evas_object_name_find().
::evas::object evas::canvas::object_name_find | ( | ::efl::eina::string_view | name_ | ) | const |
Retrieves the object on the given evas with the given name.
NULL
.This looks for the evas object given a name by evas_object_name_set(). If the name is not unique canvas-wide, then which one of the many objects with that name is returned is undefined, so only use this if you can ensure the object name is unique.
name | The given name. |
::evas::object evas::canvas::focus_get | ( | ) | const |
Retrieve the object that currently has focus.
NULL
if there is not one.Evas can have (at most) one of its objects focused at a time. Focused objects will be the ones having key events delivered to, which the programmer can act upon by means of evas_object_event_callback_add() usage.
This call returns the object that currently has focus on the canvas e
or NULL
, if none.
Example:
In this example the event_info
is exactly a pointer to that focused rectangle. See the full example.
Evas_Object* evas_focus_get | ( | const Evas_Canvas * | obj | ) |
Retrieve the object that currently has focus.
NULL
if there is not one.Evas can have (at most) one of its objects focused at a time. Focused objects will be the ones having key events delivered to, which the programmer can act upon by means of evas_object_event_callback_add() usage.
This call returns the object that currently has focus on the canvas e
or NULL
, if none.
Example:
In this example the event_info
is exactly a pointer to that focused rectangle. See the full example.
References evas_canvas_focus_get().
Evas_Object* evas_object_name_find | ( | const Evas_Canvas * | obj, |
const char * | name | ||
) |
Retrieves the object on the given evas with the given name.
NULL
.This looks for the evas object given a name by evas_object_name_set(). If the name is not unique canvas-wide, then which one of the many objects with that name is returned is undefined, so only use this if you can ensure the object name is unique.
[in] | name | The given name. |
References evas_canvas_object_name_find().
Referenced by edje_evas_global_perspective_get(), and edje_perspective_global_set().
EOAPI Evas_Object* evas_obj_name_child_find | ( | const char * | name, |
int | recurse | ||
) |
Retrieves the object from children of the given object with the given name.
NULL
.This looks for the evas object given a name by evas_object_name_set(), but it ONLY looks at the children of the object *p obj, and will only recurse into those children if recurse
is greater than 0. If the name is not unique within immediate children (or the whole child tree) then it is not defined which child object will be returned. If recurse
is set to -1 then it will recurse without limit.
[in] | name | The given name. |
[in] | recurse | Set to the number of child levels to recurse (0 == don't recurse, 1 == only look at the children of obj or their immediate children, but no further etc.). |
Referenced by evas_object_name_child_find().
::evas::object evas::object::name_child_find | ( | ::efl::eina::string_view | name_, |
int | recurse_ | ||
) | const |
Retrieves the object from children of the given object with the given name.
NULL
.This looks for the evas object given a name by evas_object_name_set(), but it ONLY looks at the children of the object *p obj, and will only recurse into those children if recurse
is greater than 0. If the name is not unique within immediate children (or the whole child tree) then it is not defined which child object will be returned. If recurse
is set to -1 then it will recurse without limit.
name | The given name. |
recurse | Set to the number of child levels to recurse (0 == don't recurse, 1 == only look at the children of obj or their immediate children, but no further etc.). |
Evas_Object* evas_object_name_child_find | ( | const Evas_Object * | obj, |
const char * | name, | ||
int | recurse | ||
) |
Retrieves the object from children of the given object with the given name.
NULL
.This looks for the evas object given a name by evas_object_name_set(), but it ONLY looks at the children of the object *p obj, and will only recurse into those children if recurse
is greater than 0. If the name is not unique within immediate children (or the whole child tree) then it is not defined which child object will be returned. If recurse
is set to -1 then it will recurse without limit.
[in] | name | The given name. |
[in] | recurse | Set to the number of child levels to recurse (0 == don't recurse, 1 == only look at the children of obj or their immediate children, but no further etc.). |
References evas_obj_name_child_find().
Evas_Object* evas_object_top_at_pointer_get | ( | const Evas * | e | ) |
Retrieve the Evas object stacked at the top at the position of the mouse cursor, over a given canvas.
e | A handle to the canvas. |
This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas covering the mouse pointer's position, over e
.
References EINA_TRUE, and eo_data_scope_get().