return (Elm_Object_Item *) _it;
}
-EINA_DEPRECATED EAPI Evas_Object *
-elm_genlist_item_genlist_get(const Elm_Object_Item *it)
-{
- return elm_object_item_widget_get(it);
-}
-
EAPI Elm_Object_Item *
elm_genlist_item_parent_get(const Elm_Object_Item *it)
{
return ((Elm_Gen_Item *)it)->item->expanded_depth;
}
-EINA_DEPRECATED EAPI void
-elm_genlist_item_disabled_set(Elm_Object_Item *it,
- Eina_Bool disabled)
-{
- elm_object_item_disabled_set(it, disabled);
-}
-
-EINA_DEPRECATED EAPI Eina_Bool
-elm_genlist_item_disabled_get(const Elm_Object_Item *it)
-{
- return elm_object_item_disabled_get(it);
-}
-
EAPI void
elm_genlist_item_display_only_set(Elm_Object_Item *it,
Eina_Bool display_only)
oh);
}
-EAPI void
-elm_genlist_item_del(Elm_Object_Item *it)
-{
- elm_object_item_del(it);
-}
-
-EAPI void
-elm_genlist_item_data_set(Elm_Object_Item *it,
- const void *data)
-{
- elm_object_item_data_set(it, (void *) data);
-}
-
-EAPI void *
-elm_genlist_item_data_get(const Elm_Object_Item *it)
-{
- return elm_object_item_data_get(it);
-}
-
-EINA_DEPRECATED EAPI void
-elm_genlist_item_icons_orphan(Elm_Object_Item *it)
-{
- elm_genlist_item_all_contents_unset(it, NULL);
-}
-
EINA_DEPRECATED EAPI void
elm_genlist_item_contents_orphan(Elm_Object_Item *it)
{
_sizing_eval(obj);
}
-EAPI void
-elm_genlist_horizontal_set(Evas_Object *obj,
- Elm_List_Mode mode)
-{
- elm_genlist_mode_set(obj, mode);
-}
-
-EAPI void
-elm_genlist_horizontal_mode_set(Evas_Object *obj,
- Elm_List_Mode mode)
-{
- elm_genlist_mode_set(obj, mode);
-}
EAPI Elm_List_Mode
elm_genlist_mode_get(const Evas_Object *obj)
return wd->mode;
}
-EINA_DEPRECATED EAPI Elm_List_Mode
-elm_genlist_horizontal_get(const Evas_Object *obj)
-{
- return elm_genlist_mode_get(obj);
-}
-
-EINA_DEPRECATED EAPI Elm_List_Mode
-elm_genlist_horizontal_mode_get(const Evas_Object *obj)
-{
- return elm_genlist_mode_get(obj);
-}
-
EAPI void
elm_genlist_always_select_mode_set(Evas_Object *obj,
Eina_Bool always_select)
}
EAPI const char *
-elm_genlist_mode_item_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->mode_item->itc->mode_item_style;
-}
-
-EAPI void
-elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style)
-{
- ELM_CHECK_WIDTYPE(obj, widtype);
- Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd) return;
- if ((style == wd->mode_item->itc->mode_item_style) ||
- (style && wd->mode_item->itc->mode_item_style &&
- (!strcmp(style, wd->mode_item->itc->mode_item_style))))
- return;
- eina_stringshare_replace((const char**)&wd->mode_item->itc->mode_item_style, style);
- elm_genlist_realized_items_update(obj);
-}
-
-EAPI const char *
elm_genlist_mode_type_get(const Evas_Object *obj)
{
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
* elm_object_item_disabled_get() to get the disabled state.
*
* In general to indicate how the genlist should expand items horizontally to
- * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
+ * fill the list area, use elm_genlist_mode_set(). Valid modes are
* ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
* mode means that if items are too wide to fit, the scroller will scroll
* horizontally. Otherwise items are expanded to fill the width of the
* @return The mode to use
* (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
*
- * @see elm_genlist_horizontal_set()
+ * @see elm_genlist_mode_set()
*
* @ingroup Genlist
*/
* This will enable the compress mode where items are "compressed"
* horizontally to fit the genlist scrollable viewport width. This is
* special for genlist. Do not rely on
- * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
+ * elm_genlist_mode_set() being set to @c ELM_LIST_COMPRESS to
* work as genlist needs to handle it specially.
*
* @see elm_genlist_compress_mode_get()