Add getters for anchorblock and anchorview hover style

SVN revision: 54475
This commit is contained in:
Bruno Dilly 2010-11-11 19:47:56 +00:00
parent d485668cb2
commit 5845793808
3 changed files with 42 additions and 0 deletions

View File

@ -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);

View File

@ -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
*

View File

@ -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
*