diff --git a/legacy/elementary/src/lib/Elementary.h.in b/legacy/elementary/src/lib/Elementary.h.in index 14d90973b0..95b1d69458 100644 --- a/legacy/elementary/src/lib/Elementary.h.in +++ b/legacy/elementary/src/lib/Elementary.h.in @@ -1178,6 +1178,7 @@ extern "C" { EAPI void elm_anchorview_hover_parent_set(Evas_Object *obj, Evas_Object *parent); EAPI Evas_Object *elm_anchorview_hover_parent_get(const Evas_Object *obj); EAPI void elm_anchorview_hover_style_set(Evas_Object *obj, const char *style); + EAPI const char *elm_anchorview_hover_style_get(const Evas_Object *obj); EAPI void elm_anchorview_hover_end(Evas_Object *obj); EAPI void elm_anchorview_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce); EAPI void elm_anchorview_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce); @@ -1210,6 +1211,7 @@ extern "C" { EAPI void elm_anchorblock_hover_parent_set(Evas_Object *obj, Evas_Object *parent); EAPI Evas_Object *elm_anchorblock_hover_parent_get(const Evas_Object *obj); EAPI void elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style); + EAPI const char *elm_anchorblock_hover_style_get(const Evas_Object *obj); EAPI void elm_anchorblock_hover_end(Evas_Object *obj); EAPI void elm_anchorblock_item_provider_append(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorblock, const char *item), void *data); EAPI void elm_anchorblock_item_provider_prepend(Evas_Object *obj, Evas_Object *(*func) (void *data, Evas_Object *anchorblock, const char *item), void *data); diff --git a/legacy/elementary/src/lib/elc_anchorblock.c b/legacy/elementary/src/lib/elc_anchorblock.c index 41bba4d682..e10b52e0ac 100644 --- a/legacy/elementary/src/lib/elc_anchorblock.c +++ b/legacy/elementary/src/lib/elc_anchorblock.c @@ -328,6 +328,26 @@ elm_anchorblock_hover_style_set(Evas_Object *obj, const char *style) eina_stringshare_replace(&wd->hover_style, style); } +/** + * Get the style that the hover should use + * + * This gets the style for the hover that anchorblock will create. See hover + * objects for more information + * + * @param obj The anchorblock object + * @return The style defined + * + * @ingroup Anchorblock + */ +EAPI const char * +elm_anchorblock_hover_style_get(const Evas_Object *obj) +{ + ELM_CHECK_WIDTYPE(obj, widtype) NULL; + Widget_Data *wd = elm_widget_data_get(obj); + if (!wd) return NULL; + return wd->hover_style; +} + /** * Stop the hover popup in the anchorblock * diff --git a/legacy/elementary/src/lib/elc_anchorview.c b/legacy/elementary/src/lib/elc_anchorview.c index 853c6c5468..e727d4b786 100644 --- a/legacy/elementary/src/lib/elc_anchorview.c +++ b/legacy/elementary/src/lib/elc_anchorview.c @@ -322,6 +322,26 @@ elm_anchorview_hover_style_set(Evas_Object *obj, const char *style) eina_stringshare_replace(&wd->hover_style, style); } +/** + * Get the style that the hover should use + * + * This gets the style for the hover that anchorview will create. See hover + * objects for more information + * + * @param obj The anchorview object + * @return The style defined + * + * @ingroup Anchorview + */ +EAPI const char * +elm_anchorview_hover_style_get(const Evas_Object *obj) +{ + ELM_CHECK_WIDTYPE(obj, widtype) NULL; + Widget_Data *wd = elm_widget_data_get(obj); + if (!wd) return NULL; + return wd->hover_style; +} + /** * Stop the hover popup in the anchorview *