Add elm_toolbar_item_show/bring_in. It show or bring a specific item, when the toolbar can be scrolled.
SVN revision: 79134
This commit is contained in:
parent
29c1236341
commit
7cfe5d503e
|
@ -669,3 +669,8 @@
|
||||||
|
|
||||||
* Support virtualkeypad, clipbard state shange signals from
|
* Support virtualkeypad, clipbard state shange signals from
|
||||||
conformant
|
conformant
|
||||||
|
|
||||||
|
2012-11-12 Jaehwan Kim
|
||||||
|
|
||||||
|
* Add elm_toolbar_item_show/bring_in.
|
||||||
|
It show or bring a specific item, when the toolbar can be scrolled.
|
||||||
|
|
|
@ -13,6 +13,7 @@ Additions:
|
||||||
* Add a search API to list all localisations corresponding to a name in map
|
* Add a search API to list all localisations corresponding to a name in map
|
||||||
* Add elm_notify_align_set/get
|
* Add elm_notify_align_set/get
|
||||||
* Add virtualkeypad, clipboard state change signals from conformant.
|
* Add virtualkeypad, clipboard state change signals from conformant.
|
||||||
|
* Add elm_toolbar_item_show/bring_in.
|
||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
|
|
@ -3256,3 +3256,35 @@ elm_toolbar_reorder_mode_get(const Evas_Object *obj)
|
||||||
|
|
||||||
return sd->reorder_mode;
|
return sd->reorder_mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI void
|
||||||
|
elm_toolbar_item_show(Elm_Object_Item *it)
|
||||||
|
{
|
||||||
|
Evas_Coord x, y, w, h, bx, by;
|
||||||
|
Elm_Toolbar_Item *item = (Elm_Toolbar_Item *)it;
|
||||||
|
|
||||||
|
ELM_TOOLBAR_ITEM_CHECK_OR_RETURN(it);
|
||||||
|
ELM_TOOLBAR_DATA_GET(WIDGET(item), sd);
|
||||||
|
|
||||||
|
evas_object_geometry_get(sd->bx, &bx, &by, NULL, NULL);
|
||||||
|
evas_object_geometry_get(VIEW(item), &x, &y, &w, &h);
|
||||||
|
x = x - bx;
|
||||||
|
y = y - by;
|
||||||
|
sd->s_iface->content_region_show(WIDGET(item), x, y, w, h);
|
||||||
|
}
|
||||||
|
|
||||||
|
EAPI void
|
||||||
|
elm_toolbar_item_bring_in(Elm_Object_Item *it)
|
||||||
|
{
|
||||||
|
Evas_Coord x, y, w, h, bx, by;
|
||||||
|
Elm_Toolbar_Item *item = (Elm_Toolbar_Item *)it;
|
||||||
|
|
||||||
|
ELM_TOOLBAR_ITEM_CHECK_OR_RETURN(it);
|
||||||
|
ELM_TOOLBAR_DATA_GET(WIDGET(item), sd);
|
||||||
|
|
||||||
|
evas_object_geometry_get(sd->bx, &bx, &by, NULL, NULL);
|
||||||
|
evas_object_geometry_get(VIEW(item), &x, &y, &w, &h);
|
||||||
|
x = x - bx;
|
||||||
|
y = y - by;
|
||||||
|
sd->s_iface->region_bring_in(WIDGET(item), x, y, w, h);
|
||||||
|
}
|
||||||
|
|
|
@ -997,6 +997,30 @@ EAPI void elm_toolbar_reorder_mode_set(Evas_Object *obj
|
||||||
*/
|
*/
|
||||||
EAPI Eina_Bool elm_toolbar_reorder_mode_get(const Evas_Object *obj);
|
EAPI Eina_Bool elm_toolbar_reorder_mode_get(const Evas_Object *obj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show a specific item, when the toolbar can be scrolled.
|
||||||
|
*
|
||||||
|
* @param it the toolbar item
|
||||||
|
*
|
||||||
|
* see elm_toolbar_item_bring_in()
|
||||||
|
*
|
||||||
|
* since 1.8
|
||||||
|
* @ingroup Toolbar
|
||||||
|
*/
|
||||||
|
EAPI void elm_toolbar_item_show(Elm_Object_Item *it);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show a specific item with scroll animation, when the toolbar can be scrolled.
|
||||||
|
*
|
||||||
|
* @param it the toolbar item
|
||||||
|
*
|
||||||
|
* see elm_toolbar_item_show()
|
||||||
|
*
|
||||||
|
* since 1.8
|
||||||
|
* @ingroup Toolbar
|
||||||
|
*/
|
||||||
|
EAPI void elm_toolbar_item_bring_in(Elm_Object_Item *it);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue