forked from enlightenment/efl
parent
baa7e26d78
commit
0e56acdbcb
|
@ -754,6 +754,7 @@ extern "C" {
|
|||
EAPI Evas_Object *elm_hoversel_icon_get(const Evas_Object *obj);
|
||||
EAPI void elm_hoversel_hover_begin(Evas_Object *obj);
|
||||
EAPI void elm_hoversel_hover_end(Evas_Object *obj);
|
||||
EAPI Eina_Bool elm_hoversel_expanded_get(Evas_Object *obj);
|
||||
EAPI void elm_hoversel_clear(Evas_Object *obj);
|
||||
EAPI const Eina_List * elm_hoversel_items_get(const Evas_Object *obj);
|
||||
EAPI Elm_Hoversel_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data);
|
||||
|
|
|
@ -424,6 +424,24 @@ elm_hoversel_hover_end(Evas_Object *obj)
|
|||
evas_object_smart_callback_call(obj, "dismissed", NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the hoversel is expanded.
|
||||
*
|
||||
* This will return EINA_TRUE if the hoversel is expanded or
|
||||
* EINA_FALSE if it is not expanded.
|
||||
* @param obj The hoversel object
|
||||
*
|
||||
* @ingroup Hoversel
|
||||
*/
|
||||
EAPI Eina_Bool
|
||||
elm_hoversel_expanded_get(Evas_Object *obj)
|
||||
{
|
||||
ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
if (!wd) return EINA_FALSE;
|
||||
return (wd->hover) ? EINA_TRUE : EINA_FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove all the items from the given hoversel object.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue