forked from enlightenment/efl
Add elm_object_top_widget_get(): Useful for hoversels.
Also useful for arguments about widget_top or top_widget. After all it's not a widget of type top, but rather the widget at the top. Your views? Opinions on a postcard plase. SVN revision: 49814
This commit is contained in:
parent
cf7ddc517a
commit
cf917f18e4
|
@ -265,6 +265,7 @@ extern "C" {
|
||||||
|
|
||||||
EAPI Eina_Bool elm_object_widget_check(const Evas_Object *obj);
|
EAPI Eina_Bool elm_object_widget_check(const Evas_Object *obj);
|
||||||
EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj);
|
EAPI Evas_Object *elm_object_parent_widget_get(const Evas_Object *obj);
|
||||||
|
EAPI Evas_Object *elm_object_top_widget_get(const Evas_Object *obj);
|
||||||
EAPI const char *elm_object_widget_type_get(const Evas_Object *obj);
|
EAPI const char *elm_object_widget_type_get(const Evas_Object *obj);
|
||||||
|
|
||||||
EAPI double elm_scale_get(void);
|
EAPI double elm_scale_get(void);
|
||||||
|
|
|
@ -1361,6 +1361,19 @@ elm_object_parent_widget_get(const Evas_Object *obj)
|
||||||
return elm_widget_parent_widget_get(obj);
|
return elm_widget_parent_widget_get(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the top level parent of an Elementary widget.
|
||||||
|
*
|
||||||
|
* @param obj The object to query.
|
||||||
|
* @return The top level Elementary widget, or @c NULL if parent cannot be
|
||||||
|
* found.
|
||||||
|
*/
|
||||||
|
EAPI Evas_Object *
|
||||||
|
elm_object_top_widget_get(const Evas_Object *obj)
|
||||||
|
{
|
||||||
|
return elm_widget_top_get(obj);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the string that represents this Elementary widget.
|
* Get the string that represents this Elementary widget.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue