*/
EINA_DEPRECATED EAPI Eina_Bool elm_naviframe_item_title_visible_get(const Elm_Object_Item *it);
+/**
+ * @internal
+ * @remarks Tizen only feature
+ *
+ * @brief Sets the genlist fx mode.
+ *
+ * @remarks This API can be changed or deleted later.
+ *
+ * @remarks This sets the genlist special effects.
+ * Use this only when the genlist effects have to be disabled.
+ *
+ * @remarks In normal cases, don't use this API.
+ * The fx mode is enabled by default.
+ *
+ * @deprecated Tizen Only API.
+ *
+ * @param obj The genlist object
+ * @param fx_mode The fx status
+ * (@c EINA_TRUE = fx mode, @c EINA_FALSE = normal mode)
+ */
+EINA_DEPRECATED EAPI void elm_genlist_fx_mode_set(Evas_Object *obj, Eina_Bool fx_mode);
+
+/**
+ * @internal
+ * @remarks Tizen only feature
+ *
+ * @brief Gets the genlist fx mode.
+ *
+ * @remarks This API can be changed or deleted later.
+ *
+ * @deprecated Tizen Only API.
+ *
+ * @param obj The genlist object
+ * @return The fx mode
+ * (@c EINA_TRUE = on, @c EINA_FALSE = off)
+ */
+EINA_DEPRECATED EAPI Eina_Bool elm_genlist_fx_mode_get(const Evas_Object *obj);
+
+/**
+ * @internal
+ * @remarks Tizen only feature
+ *
+ * @brief Sets whether a given genlist item is hidden.
+ *
+ * @details This sets the hidden state of an item.
+ *
+ * @deprecated Tizen Only API.
+ *
+ * @param it The genlist item
+ * @param hide If @c EINA_TRUE it hides the item,
+ * otherwise @c EINA_FALSE to show it
+ */
+EINA_DEPRECATED EAPI void elm_genlist_item_hide_set(const Elm_Object_Item *it, Eina_Bool hide);
+
+/**
+ * @internal
+ * @remarks Tizen only feature
+ *
+ * @brief Gets the genlist item's hidden mode
+ *
+ * @deprecated Tizen Only API.
+ *
+ * @param it The genlist item object
+ * @return The hidden mode
+ * (EINA_TRUE = on, EINA_FALSE = off)
+ */
+EINA_DEPRECATED EAPI Eina_Bool elm_genlist_item_hide_get(const Elm_Object_Item *it);
+
/**
* @internal
*
*/
EINA_DEPRECATED EAPI void elm_genlist_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);
+
+
/**
* @internal
*
while ((i < item_count) && (next))
{
- if (!next->realized || next->hide)
+ if (!next->realized || next->want_hidden)
{
prev = next;
next = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(next)->next);
{
if (sd->reorder.it == it) continue;
if (!it->filtered) _item_filtered_get(it);
- if (it->hide)
+ if (it->want_hidden)
{
if (it->realized) evas_object_hide(VIEW(it));
continue;
while(tmp)
{
- if (tmp->hide || !tmp->realized )
+ if (tmp->want_hidden || !tmp->realized )
tmp = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(tmp)->prev);
else
break;
while(prev)
{
- if(prev->hide)
+ if(prev->want_hidden)
prev = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(prev)->prev);
else
break;
while(prev)
{
- if(prev->hide)
+ if(prev->want_hidden)
prev = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(prev)->prev);
else
break;
while (tmp)
{
if (!elm_object_item_disabled_get(EO_OBJ(tmp)) &&
- (!tmp->hide))
+ (!tmp->want_hidden))
{
if ((tmp->select_mode == ELM_OBJECT_SELECT_MODE_DEFAULT) ||
(tmp->select_mode == ELM_OBJECT_SELECT_MODE_ALWAYS))
if (((sd->reorder_force) || (sd->reorder_mode)) &&
(sd->reorder.it == it) &&
- (!it->hide))
+ (!it->want_hidden))
{
Evas_Coord ox;
evas_object_geometry_get(sd->pan_obj, &ox, NULL, NULL, NULL);
else
{
if (((sd->reorder_force) || (sd->reorder_mode)) &&
- (sd->reorder.it == it) && (!it->hide))
+ (sd->reorder.it == it) && (!it->want_hidden))
return;
Evas_Coord x, y, w, h;
evas_object_geometry_get(obj, &x, &y, &w, &h);
EINA_LIST_FOREACH(itb->items, l, it)
{
- if (it->hide) continue;
+ if (it->want_hidden) continue;
if (GL_IT(it)->updateme)
{
if (it->realized)
done = EINA_TRUE;
EINA_LIST_FOREACH(itb->items, l, it)
{
- if (!it->realized || it->hide) continue;
+ if (!it->realized || it->want_hidden) continue;
if (is_atspi)
{
elm_interface_atspi_accessible_added(EO_OBJ(it));
{
ELM_GENLIST_ITEM_CHECK_OR_RETURN(it);
+ if (it->want_hidden)
+ {
+ WRN("Filter hided item cannot move to show");
+ return;
+ }
+
Elm_Genlist_Data *sd = GL_IT(it)->wsd;
sd->show_item = it;
sd->bring_in = EINA_FALSE;
{
ELM_GENLIST_ITEM_CHECK_OR_RETURN(it);
+ if (it->want_hidden)
+ {
+ WRN("Filter hided item cannot move to bring in");
+ return;
+ }
+
Elm_Genlist_Data *sd = GL_IT(it)->wsd;
sd->show_item = it;
sd->bring_in = EINA_TRUE;
(void *)WIDGET_ITEM_DATA_GET(EO_OBJ(it)),
WIDGET(it), sd->filter_data))
{
- it->hide = EINA_TRUE;
+ it->want_hidden = EINA_TRUE;
GL_IT(it)->block->calc_done = EINA_FALSE;
sd->calc_done = EINA_FALSE;
}
sd->calc_done = EINA_FALSE;
_changed(sd->pan_obj);
}
- if (!it->hide) return EINA_TRUE;
+ if (!it->want_hidden) return EINA_TRUE;
return EINA_FALSE;
}
EINA_LIST_FOREACH(itb->items, l, it)
{
it->filtered = EINA_FALSE;
- it->hide = EINA_FALSE;
+ it->want_hidden = EINA_FALSE;
if (it->realized)
_filter_item_internal(it);
else
EINA_LIST_FOREACH(itb->items, l, it)
{
it->filtered = EINA_FALSE;
- it->hide = EINA_FALSE;
+ it->want_hidden = EINA_FALSE;
sd->filter_queue = eina_list_append(sd->filter_queue, it);
}
}
EAPI void
elm_genlist_item_hide_set(const Elm_Object_Item *eo_item, Eina_Bool hide)
{
- ELM_GENLIST_ITEM_DATA_GET(eo_item, it);
- ELM_GENLIST_ITEM_CHECK_OR_RETURN(it);
- Elm_Genlist_Data *sd = GL_IT(it)->wsd;
-
- if (it->hide == !!hide) return;
- it->hide = !!hide;
-
- if (GL_IT(it)->block)
- GL_IT(it)->block->calc_done = EINA_FALSE;
- sd->calc_done = EINA_FALSE;
-
- _changed(sd->pan_obj);
+ WRN("This API is deprecated, please use filter_set instead of this");
}
EAPI Eina_Bool
elm_genlist_item_hide_get(const Elm_Object_Item *eo_item)
{
- ELM_GENLIST_ITEM_DATA_GET(eo_item, it);
- ELM_GENLIST_ITEM_CHECK_OR_RETURN(it, EINA_FALSE)
-
- return it->hide;
+ WRN("This API is deprecated, please use filter_set instead of this");
+ return EINA_FALSE;
}
///////////////////////////////////////////////////////////////////////////////