From bcf4bd22212bbaa829dddd6b6bdf5983ae4671a9 Mon Sep 17 00:00:00 2001 From: SangHyeon Lee Date: Wed, 13 Dec 2017 13:50:42 +0900 Subject: [PATCH] genlist: add @tizen_only @internal APIs @tizen_fix Change-Id: I5417c44b461fd5bb8e513d786d3c792c08de5454 --- src/lib/elementary/elm_genlist.c | 30 +++++++++++++++++ src/lib/elementary/elm_genlist_legacy.h | 60 +++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c index be0eca1..4ba15f7 100644 --- a/src/lib/elementary/elm_genlist.c +++ b/src/lib/elementary/elm_genlist.c @@ -8951,6 +8951,36 @@ _elm_genlist_elm_widget_focus_state_apply(Eo *obj, Elm_Genlist_Data *pd EINA_UNU return efl_ui_widget_focus_state_apply(efl_super(obj, MY_CLASS), current_state, configured_state, obj); } +//Tizen Only(20170113) : Below Legacy APIs are Mobile Only Feature +EAPI void +elm_genlist_realization_mode_set(Evas_Object *obj EINA_UNUSED, Eina_Bool mode EINA_UNUSED) +{ + // Mobile Only Feature; + return; +} + +EAPI Eina_Bool +elm_genlist_realization_mode_get(Evas_Object *obj EINA_UNUSED) +{ + // Mobile Only Feature; + return EINA_FALSE; +} + +EAPI void +elm_genlist_item_reorder_start(Elm_Object_Item *item EINA_UNUSED) +{ + // Mobile Only Feature; + return; +} + +EAPI void +elm_genlist_item_reorder_stop(Elm_Object_Item *item EINA_UNUSED) +{ + // Mobile Only Feature; + return; +} +// + /* Standard widget overrides */ ELM_WIDGET_KEY_DOWN_DEFAULT_IMPLEMENT(elm_genlist, Elm_Genlist_Data) diff --git a/src/lib/elementary/elm_genlist_legacy.h b/src/lib/elementary/elm_genlist_legacy.h index 3817f05..58042fb 100644 --- a/src/lib/elementary/elm_genlist_legacy.h +++ b/src/lib/elementary/elm_genlist_legacy.h @@ -31,5 +31,65 @@ EAPI Evas_Object *elm_genlist_add(Evas_Object *parent); EAPI Elm_Object_Item * elm_genlist_nth_item_get(const Evas_Object *obj, unsigned int nth); + +/** + * @internal + * @remarks Mobile only feature + * + * @brief Sets the genlist realization mode. + * + * @remarks By default, genlist disables the realization mode and genlists realize and + * unrealize some items when needed. If the realization mode is on, + * all items are realized when genlist is created and no items are unrealized. + * If this mode is on and the content size is changed, the item size + * changes accordingly. By default, genlist does not change item sizes + * eventhough they can be changed for performance reasons. + * This consumes more memory and decrease performance. So if the application + * appends many items, do not use the realization mode. + * + * @param obj The genlist object + * @param mode The realization mode + * (@c EINA_TRUE = on, @c EINA_FALSE = off) + */ +EAPI void +elm_genlist_realization_mode_set(Evas_Object *obj, Eina_Bool mode); + +/** + * @internal + * @remarks Mobile only feature + * + * @brief Gets the genlist realization mode. + * + * @param obj The genlist object + * @return The realization mode + * (@c EINA_TRUE = on, @c EINA_FALSE = off) + */ +EAPI Eina_Bool +elm_genlist_realization_mode_get(Evas_Object *obj); + +/** + * @internal + * @remarks Mobile only feature + * + * @brief Starts reordering for a specific item. it moves by move event. + * + * @param item The genlist item object + */ +EAPI void +elm_genlist_item_reorder_start(Elm_Object_Item *item); + +/** + * @internal + * @remarks Mobile only feature + * + * @brief Stop reordering and relocate the item at touch released position. + * @param item The genlist item object + */ +EAPI void +elm_genlist_item_reorder_stop(Elm_Object_Item *item); +/** + * @} + */ + #include "elm_genlist_item.eo.legacy.h" #include "elm_genlist.eo.legacy.h" -- 2.7.4