forked from enlightenment/efl
Add selected item getter and setter API. Getter to be implemented.
Signed-off-by: Sanjeev BA <iamsanjeev@gmail.com> SVN revision: 68839
This commit is contained in:
parent
3d6850c2c9
commit
de64c5bf43
|
@ -1589,7 +1589,7 @@ elm_multibuttonentry_selected_item_get(const Evas_Object *obj)
|
|||
}
|
||||
|
||||
EAPI void
|
||||
elm_multibuttonentry_item_select(Elm_Object_Item *it, Eina_Bool selected)
|
||||
elm_multibuttonentry_item_selected_set(Elm_Object_Item *it, Eina_Bool selected)
|
||||
{
|
||||
ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
|
||||
Elm_Multibuttonentry_Item *item = (Elm_Multibuttonentry_Item *)it;
|
||||
|
@ -1597,13 +1597,12 @@ elm_multibuttonentry_item_select(Elm_Object_Item *it, Eina_Bool selected)
|
|||
else _select_button(WIDGET(item), NULL);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
elm_multibuttonentry_item_unselect_all(Evas_Object *obj)
|
||||
EAPI Eina_Bool
|
||||
elm_multibuttonentry_item_selected_get(const Elm_Object_Item *it)
|
||||
{
|
||||
ELM_CHECK_WIDTYPE(obj, widtype);
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
if (!wd) return;
|
||||
_select_button(obj, NULL);
|
||||
//TODO : To be implemented.
|
||||
if (!it) return EINA_FALSE;
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
|
|
|
@ -216,20 +216,18 @@ EAPI Elm_Object_Item *elm_multibuttonentry_selected_item_get(const Evas_Object *
|
|||
*
|
||||
* @ingroup Multibuttonentry
|
||||
*/
|
||||
// XXX: EAPI void elm_multibuttonentry_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
|
||||
EAPI void elm_multibuttonentry_item_select(Elm_Object_Item *it, Eina_Bool selected);
|
||||
EAPI void elm_multibuttonentry_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
|
||||
|
||||
// XXX: Add EAPI Eina_Bool elm_multibuttonentry_item_selected_get(const Elm_Object_Item *it);
|
||||
|
||||
/**
|
||||
* unselect all items.
|
||||
* Get the selected state of an item
|
||||
*
|
||||
* @param obj The multibuttonentry object
|
||||
* @param it The item
|
||||
* @return EINA_TRUE if the item is selected, EINA_FALSE otherwise.
|
||||
*
|
||||
* @ingroup Multibuttonentry
|
||||
*/
|
||||
// XXX: deprecated this. only one item can be selected but why this does unselect all?
|
||||
EAPI void elm_multibuttonentry_item_unselect_all(Evas_Object *obj);
|
||||
EAPI Eina_Bool elm_multibuttonentry_item_selected_get(const Elm_Object_Item *it);
|
||||
|
||||
/**
|
||||
* Remove all items in the multibuttonentry.
|
||||
|
|
Loading…
Reference in New Issue