struct _Elm_Gengrid_Item
{
- Elm_Widget_Item base;
+ ELM_WIDGET_ITEM;
EINA_INLIST;
Evas_Object *spacer;
- const Elm_Gengrid_Item_Class *gic;
- Elm_Gengrid_Item *parent_group_item;
+ const Elm_Gengrid_Item_Class *itc;
+ Elm_Gengrid_Item *parent;
Ecore_Timer *long_timer;
Ecore_Animator *item_moving_effect_timer;
Widget_Data *wd;
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
return EINA_TRUE;
}
- else if ((!strcmp(ev->keyname, "Prior")) ||
- (!strcmp(ev->keyname, "KP_Prior")))
+ else if ((!strcmp(ev->keyname, "Prior")) || (!strcmp(ev->keyname, "KP_Prior")))
{
if (wd->horizontal)
{
_deselect_all_items(Widget_Data *wd)
{
if (!wd->selected) return EINA_FALSE;
- while(wd->selected)
+ while (wd->selected)
elm_gengrid_item_selected_set(wd->selected->data, EINA_FALSE);
return EINA_TRUE;
while (it)
{
- edje_object_mirrored_set(it->base.view, rtl);
+ edje_object_mirrored_set(VIEW(it), rtl);
elm_gengrid_item_update(it);
it = ELM_GENGRID_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->next);
}
if (it->wd->reorder_mode)
{
it->wd->reorder_item = it;
- evas_object_raise(it->base.view);
+ evas_object_raise(VIEW(it));
elm_smart_scroller_hold_set(it->wd->scr, EINA_TRUE);
elm_smart_scroller_bounce_allow_set(it->wd->scr, EINA_FALSE, EINA_FALSE);
- edje_object_signal_emit(it->base.view, "elm,state,reorder,enabled", "elm");
+ edje_object_signal_emit(VIEW(it), "elm,state,reorder,enabled", "elm");
}
return ECORE_CALLBACK_CANCEL;
}
elm_smart_scroller_hold_set(it->wd->scr, EINA_FALSE);
elm_smart_scroller_bounce_allow_set(it->wd->scr, it->wd->h_bounce, it->wd->v_bounce);
- edje_object_signal_emit(it->base.view, "elm,state,reorder,disabled", "elm");
+ edje_object_signal_emit(VIEW(it), "elm,state,reorder,disabled", "elm");
}
if (it->wd->longpressed)
{
_item_highlight(Elm_Gengrid_Item *it)
{
if ((it->wd->no_select) || (it->delete_me) || (it->highlighted)) return;
- edje_object_signal_emit(it->base.view, "elm,state,selected", "elm");
+ edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm");
it->highlighted = EINA_TRUE;
}
char style[1024];
if ((it->realized) || (it->delete_me)) return;
- it->base.view = edje_object_add(evas_object_evas_get(it->wd->self));
- edje_object_scale_set(it->base.view, elm_widget_scale_get(it->wd->self) *
+ VIEW(it) = edje_object_add(evas_object_evas_get(it->wd->self));
+ edje_object_scale_set(VIEW(it), elm_widget_scale_get(it->wd->self) *
_elm_config->scale);
- edje_object_mirrored_set(it->base.view, elm_widget_mirrored_get(it->base.widget));
- evas_object_smart_member_add(it->base.view, it->wd->pan_smart);
- elm_widget_sub_object_add(it->wd->self, it->base.view);
- snprintf(style, sizeof(style), "it/%s",
- it->gic->item_style ? it->gic->item_style : "default");
- _elm_theme_object_set(it->wd->self, it->base.view, "gengrid", style,
+ edje_object_mirrored_set(VIEW(it), elm_widget_mirrored_get(WIDGET(it)));
+ evas_object_smart_member_add(VIEW(it), it->wd->pan_smart);
+ elm_widget_sub_object_add(it->wd->self, VIEW(it));
+ snprintf(style, sizeof(style), "item/%s",
+ it->itc->item_style ? it->itc->item_style : "default");
+ _elm_theme_object_set(it->wd->self, VIEW(it), "gengrid", style,
elm_widget_style_get(it->wd->self));
it->spacer =
evas_object_rectangle_add(evas_object_evas_get(it->wd->self));
evas_object_color_set(it->spacer, 0, 0, 0, 0);
elm_widget_sub_object_add(it->wd->self, it->spacer);
evas_object_size_hint_min_set(it->spacer, 2 * _elm_config->scale, 1);
- edje_object_part_swallow(it->base.view, "elm.swallow.pad", it->spacer);
+ edje_object_part_swallow(VIEW(it), "elm.swallow.pad", it->spacer);
- if (it->gic->func.label_get)
+ if (it->itc->func.label_get)
{
const Eina_List *l;
const char *key;
it->labels =
- elm_widget_stringlist_get(edje_object_data_get(it->base.view,
+ elm_widget_stringlist_get(edje_object_data_get(VIEW(it),
"labels"));
EINA_LIST_FOREACH(it->labels, l, key)
{
- char *s = it->gic->func.label_get
+ char *s = it->itc->func.label_get
((void *)it->base.data, it->wd->self, l->data);
if (s)
{
- edje_object_part_text_set(it->base.view, l->data, s);
+ edje_object_part_text_set(VIEW(it), l->data, s);
free(s);
}
}
}
- if (it->gic->func.icon_get)
+ if (it->itc->func.icon_get)
{
const Eina_List *l;
const char *key;
it->icons =
- elm_widget_stringlist_get(edje_object_data_get(it->base.view,
+ elm_widget_stringlist_get(edje_object_data_get(VIEW(it),
"icons"));
EINA_LIST_FOREACH(it->icons, l, key)
{
- Evas_Object *ic = it->gic->func.icon_get
+ Evas_Object *ic = it->itc->func.icon_get
((void *)it->base.data, it->wd->self, l->data);
if (ic)
{
it->icon_objs = eina_list_append(it->icon_objs, ic);
- edje_object_part_swallow(it->base.view, key, ic);
+ edje_object_part_swallow(VIEW(it), key, ic);
evas_object_show(ic);
elm_widget_sub_object_add(it->wd->self, ic);
}
}
}
- if (it->gic->func.state_get)
+ if (it->itc->func.state_get)
{
const Eina_List *l;
const char *key;
it->states =
- elm_widget_stringlist_get(edje_object_data_get(it->base.view,
+ elm_widget_stringlist_get(edje_object_data_get(VIEW(it),
"states"));
EINA_LIST_FOREACH(it->states, l, key)
{
- Eina_Bool on = it->gic->func.state_get
+ Eina_Bool on = it->itc->func.state_get
((void *)it->base.data, it->wd->self, l->data);
if (on)
{
snprintf(buf, sizeof(buf), "elm,state,%s,active", key);
- edje_object_signal_emit(it->base.view, buf, "elm");
+ edje_object_signal_emit(VIEW(it), buf, "elm");
}
}
}
{
if ((!it->wd->group_item_width) && (!it->wd->group_item_height))
{
- edje_object_size_min_restricted_calc(it->base.view,
+ edje_object_size_min_restricted_calc(VIEW(it),
&it->wd->group_item_width,
&it->wd->group_item_height,
it->wd->group_item_width,
{
if ((!it->wd->item_width) && (!it->wd->item_height))
{
- edje_object_size_min_restricted_calc(it->base.view,
+ edje_object_size_min_restricted_calc(VIEW(it),
&it->wd->item_width,
&it->wd->item_height,
it->wd->item_width,
1, &it->wd->item_height);
}
- evas_object_event_callback_add(it->base.view, EVAS_CALLBACK_MOUSE_DOWN,
+ evas_object_event_callback_add(VIEW(it), EVAS_CALLBACK_MOUSE_DOWN,
_mouse_down, it);
- evas_object_event_callback_add(it->base.view, EVAS_CALLBACK_MOUSE_UP,
+ evas_object_event_callback_add(VIEW(it), EVAS_CALLBACK_MOUSE_UP,
_mouse_up, it);
- evas_object_event_callback_add(it->base.view, EVAS_CALLBACK_MOUSE_MOVE,
+ evas_object_event_callback_add(VIEW(it), EVAS_CALLBACK_MOUSE_MOVE,
_mouse_move, it);
if (it->selected)
- edje_object_signal_emit(it->base.view, "elm,state,selected", "elm");
+ edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm");
if (it->disabled)
- edje_object_signal_emit(it->base.view, "elm,state,disabled", "elm");
+ edje_object_signal_emit(VIEW(it), "elm,state,disabled", "elm");
}
- evas_object_show(it->base.view);
+ evas_object_show(VIEW(it));
if (it->tooltip.content_cb)
{
Evas_Object *icon;
if (!it->realized) return;
+ evas_object_smart_callback_call(WIDGET(it), SIG_UNREALIZED, it);
if (it->long_timer)
{
ecore_timer_del(it->long_timer);
it->long_timer = NULL;
}
- evas_object_del(it->base.view);
- it->base.view = NULL;
+ evas_object_del(VIEW(it));
+ VIEW(it) = NULL;
evas_object_del(it->spacer);
it->spacer = NULL;
elm_widget_stringlist_free(it->labels);
if ((((dx > 0) && (it->rx >= it->tx)) || ((dx <= 0) && (it->rx <= it->tx))) &&
(((dy > 0) && (it->ry >= it->ty)) || ((dy <= 0) && (it->ry <= it->ty))))
{
- evas_object_move(it->base.view, it->tx, it->ty);
+ evas_object_move(VIEW(it), it->tx, it->ty);
if (it->is_group)
{
Evas_Coord vw, vh;
evas_object_geometry_get(it->wd->pan_smart, NULL, NULL, &vw, &vh);
if (it->wd->horizontal)
- evas_object_resize(it->base.view, it->wd->group_item_width, vh);
+ evas_object_resize(VIEW(it), it->wd->group_item_width, vh);
else
- evas_object_resize(it->base.view, vw, it->wd->group_item_height);
+ evas_object_resize(VIEW(it), vw, it->wd->group_item_height);
}
else
- evas_object_resize(it->base.view, it->wd->item_width, it->wd->item_height);
+ evas_object_resize(VIEW(it), it->wd->item_width, it->wd->item_height);
it->moving = EINA_FALSE;
it->item_moving_effect_timer = NULL;
return ECORE_CALLBACK_CANCEL;
}
- evas_object_move(it->base.view, it->rx, it->ry);
+ evas_object_move(VIEW(it), it->rx, it->ry);
if (it->is_group)
{
Evas_Coord vw, vh;
evas_object_geometry_get(it->wd->pan_smart, NULL, NULL, &vw, &vh);
if (it->wd->horizontal)
- evas_object_resize(it->base.view, it->wd->group_item_width, vh);
+ evas_object_resize(VIEW(it), it->wd->group_item_width, vh);
else
- evas_object_resize(it->base.view, vw, it->wd->group_item_height);
+ evas_object_resize(VIEW(it), vw, it->wd->group_item_height);
}
else
- evas_object_resize(it->base.view, it->wd->item_width, it->wd->item_height);
+ evas_object_resize(VIEW(it), it->wd->item_width, it->wd->item_height);
return ECORE_CALLBACK_RENEW;
}
_item_realize(it);
if (!was_realized)
evas_object_smart_callback_call(it->wd->self, SIG_REALIZED, it);
- evas_object_move(it->base.view, it->gx, it->gy);
- evas_object_resize(it->base.view, iw, ih);
- evas_object_raise(it->base.view);
+ evas_object_move(VIEW(it), it->gx, it->gy);
+ evas_object_resize(VIEW(it), iw, ih);
+ evas_object_raise(VIEW(it));
}
else
- {
- _item_unrealize(it);
- if (was_realized)
- evas_object_smart_callback_call(it->wd->self, SIG_UNREALIZED, it);
- }
+ _item_unrealize(it);
}
}
_item_realize(it);
if (!was_realized)
evas_object_smart_callback_call(it->wd->self, SIG_REALIZED, it);
- if (it->parent_group_item)
+ if (it->parent)
{
if (it->wd->horizontal)
{
- if (it->parent_group_item->gx < 0)
+ if (it->parent->gx < 0)
{
- it->parent_group_item->gx = x + it->wd->item_width - it->wd->group_item_width;
- if (it->parent_group_item->gx > 0)
- it->parent_group_item->gx = 0;
+ it->parent->gx = x + it->wd->item_width - it->wd->group_item_width;
+ if (it->parent->gx > 0)
+ it->parent->gx = 0;
}
}
else
{
- if (it->parent_group_item->gy < 0)
+ if (it->parent->gy < 0)
{
- it->parent_group_item->gy = y + it->wd->item_height - it->wd->group_item_height;
- if (it->parent_group_item->gy > 0)
- it->parent_group_item->gy = 0;
+ it->parent->gy = y + it->wd->item_height - it->wd->group_item_height;
+ if (it->parent->gy > 0)
+ it->parent->gy = 0;
}
- it->parent_group_item->group_realized = EINA_TRUE;
+ it->parent->group_realized = EINA_TRUE;
}
}
if (it->wd->reorder_mode)
}
if (it->wd->reorder_item == it)
{
- evas_object_move(it->base.view,
+ evas_object_move(VIEW(it),
it->wd->reorder_item_x, it->wd->reorder_item_y);
- evas_object_resize(it->base.view, iw, ih);
+ evas_object_resize(VIEW(it), iw, ih);
return;
}
else
}
if (!it->is_group)
{
- evas_object_move(it->base.view, x, y);
- evas_object_resize(it->base.view, iw, ih);
+ evas_object_move(VIEW(it), x, y);
+ evas_object_resize(VIEW(it), iw, ih);
}
else
it->group_realized = EINA_TRUE;
else
{
if (!it->is_group)
- {
- _item_unrealize(it);
- if (was_realized)
- evas_object_smart_callback_call(it->wd->self, SIG_UNREALIZED, it);
- }
+ _item_unrealize(it);
else
it->group_realized = EINA_FALSE;
}
static const char *
_item_label_hook(Elm_Gengrid_Item *it, const char *part)
{
- if (!it->gic->func.label_get) return NULL;
- return edje_object_part_text_get(it->base.view, part);
+ if (!it->itc->func.label_get) return NULL;
+ return edje_object_part_text_get(VIEW(it), part);
}
static Elm_Gengrid_Item *
-_item_create(Widget_Data *wd,
- const Elm_Gengrid_Item_Class *gic,
+_item_new(Widget_Data *wd,
+ const Elm_Gengrid_Item_Class *itc,
const void *data,
Evas_Smart_Cb func,
const void *func_data)
if (!it) return NULL;
wd->count++;
it->wd = wd;
- it->gic = gic;
+ it->itc = itc;
it->base.data = data;
it->func.func = func;
it->func.data = func_data;
it->mouse_cursor = NULL;
- it->is_group = !strcmp(it->gic->item_style, "group_index");
+ it->is_group = !strcmp(it->itc->item_style, "group_index");
elm_widget_item_text_get_hook_set(it, _item_label_hook);
return it;
if (it->selected)
it->wd->selected = eina_list_remove(it->wd->selected, it);
if (it->realized) _item_unrealize(it);
- if ((!it->delete_me) && (it->gic->func.del))
- it->gic->func.del((void *)it->base.data, it->wd->self);
+ if ((!it->delete_me) && (it->itc->func.del))
+ it->itc->func.del((void *)it->base.data, it->wd->self);
it->delete_me = EINA_TRUE;
it->wd->items = eina_inlist_remove(it->wd->items, EINA_INLIST_GET(it));
if (it->long_timer) ecore_timer_del(it->long_timer);
if (it->tooltip.del_cb)
- it->tooltip.del_cb((void *)it->tooltip.data, it->base.widget, it);
+ it->tooltip.del_cb((void *)it->tooltip.data, WIDGET(it), it);
it->wd->walking -= it->walking;
it->wd->count--;
if (it->is_group)
it->wd->walking--;
it->wd->last_selected_item = it;
if ((it->wd->clear_me) && (!it->wd->walking))
- elm_gengrid_clear(it->base.widget);
+ elm_gengrid_clear(WIDGET(it));
else
{
if ((!it->walking) && (it->delete_me))
_item_unselect(Elm_Gengrid_Item *it)
{
if ((it->delete_me) || (!it->highlighted)) return;
- edje_object_signal_emit(it->base.view, "elm,state,unselected", "elm");
+ edje_object_signal_emit(VIEW(it), "elm,state,unselected", "elm");
it->highlighted = EINA_FALSE;
if (it->selected)
{
}
else
{
- if (it->parent_group_item != group_item)
- it->parent_group_item = group_item;
+ if (it->parent != group_item)
+ it->parent = group_item;
count++;
}
}
EAPI Elm_Gengrid_Item *
elm_gengrid_item_append(Evas_Object *obj,
- const Elm_Gengrid_Item_Class *gic,
+ const Elm_Gengrid_Item_Class *itc,
const void *data,
Evas_Smart_Cb func,
const void *func_data)
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- it = _item_create(wd, gic, data, func, func_data);
+ it = _item_new(wd, itc, data, func, func_data);
if (!it) return NULL;
wd->items = eina_inlist_append(wd->items, EINA_INLIST_GET(it));
EAPI Elm_Gengrid_Item *
elm_gengrid_item_prepend(Evas_Object *obj,
- const Elm_Gengrid_Item_Class *gic,
+ const Elm_Gengrid_Item_Class *itc,
const void *data,
Evas_Smart_Cb func,
const void *func_data)
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- it = _item_create(wd, gic, data, func, func_data);
+ it = _item_new(wd, itc, data, func, func_data);
if (!it) return NULL;
wd->items = eina_inlist_prepend(wd->items, EINA_INLIST_GET(it));
if (it->is_group)
EAPI Elm_Gengrid_Item *
elm_gengrid_item_insert_before(Evas_Object *obj,
- const Elm_Gengrid_Item_Class *gic,
+ const Elm_Gengrid_Item_Class *itc,
const void *data,
Elm_Gengrid_Item *relative,
Evas_Smart_Cb func,
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- it = _item_create(wd, gic, data, func, func_data);
+ it = _item_new(wd, itc, data, func, func_data);
if (!it) return NULL;
wd->items = eina_inlist_prepend_relative
(wd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(relative));
if (it->is_group)
- wd->group_items = eina_list_append_relative(wd->group_items, it, relative->parent_group_item);
+ wd->group_items = eina_list_append_relative(wd->group_items, it, relative->parent);
if (wd->calc_job) ecore_job_del(wd->calc_job);
wd->calc_job = ecore_job_add(_calc_job, wd);
EAPI Elm_Gengrid_Item *
elm_gengrid_item_insert_after(Evas_Object *obj,
- const Elm_Gengrid_Item_Class *gic,
+ const Elm_Gengrid_Item_Class *itc,
const void *data,
Elm_Gengrid_Item *relative,
Evas_Smart_Cb func,
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- it = _item_create(wd, gic, data, func, func_data);
+ it = _item_new(wd, itc, data, func, func_data);
if (!it) return NULL;
wd->items = eina_inlist_append_relative
(wd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(relative));
if (it->is_group)
- wd->group_items = eina_list_prepend_relative(wd->group_items, it, relative->parent_group_item);
+ wd->group_items = eina_list_prepend_relative(wd->group_items, it, relative->parent);
if (wd->calc_job) ecore_job_del(wd->calc_job);
wd->calc_job = ecore_job_add(_calc_job, wd);
EAPI Elm_Gengrid_Item *
elm_gengrid_item_direct_sorted_insert(Evas_Object *obj,
- const Elm_Gengrid_Item_Class *gic,
+ const Elm_Gengrid_Item_Class *itc,
const void *data,
Eina_Compare_Cb comp,
Evas_Smart_Cb func,
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- it = _item_create(wd, gic, data, func, func_data);
+ it = _item_new(wd, itc, data, func, func_data);
if (!it) return NULL;
if (!wd->state)
EAPI Elm_Gengrid_Item *
elm_gengrid_item_sorted_insert(Evas_Object *obj,
- const Elm_Gengrid_Item_Class *gic,
+ const Elm_Gengrid_Item_Class *itc,
const void *data,
Eina_Compare_Cb comp,
Evas_Smart_Cb func,
{
_elm_gengrid_item_compare_data_cb = comp;
- return elm_gengrid_item_direct_sorted_insert(obj, gic, data, _elm_gengrid_item_compare_data, func, func_data);
+ return elm_gengrid_item_direct_sorted_insert(obj, itc, data, _elm_gengrid_item_compare_data, func, func_data);
}
EAPI void
elm_widget_item_pre_notify_del(it);
if (it->selected)
it->wd->selected = eina_list_remove(it->wd->selected, it);
- if (it->gic->func.del)
- it->gic->func.del((void *)it->base.data, it->wd->self);
+ if (it->itc->func.del)
+ it->itc->func.del((void *)it->base.data, it->wd->self);
return;
}
wd->items = eina_inlist_remove(wd->items, wd->items);
elm_widget_item_pre_notify_del(it);
if (it->realized) _item_unrealize(it);
- if (it->gic->func.del)
- it->gic->func.del((void *)it->base.data, wd->self);
+ if (it->itc->func.del)
+ it->itc->func.del((void *)it->base.data, wd->self);
if (it->long_timer) ecore_timer_del(it->long_timer);
elm_widget_item_del(it);
}
elm_gengrid_item_object_get(const Elm_Gengrid_Item *it)
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, NULL);
- return it->base.view;
+ return VIEW(it);
}
EAPI void
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, NULL);
if (it->delete_me) return NULL;
- return it->gic;
+ return it->itc;
}
EAPI void
elm_gengrid_item_item_class_set(Elm_Gengrid_Item *it,
- const Elm_Gengrid_Item_Class *gic)
+ const Elm_Gengrid_Item_Class *itc)
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
- EINA_SAFETY_ON_NULL_RETURN(gic);
+ EINA_SAFETY_ON_NULL_RETURN(itc);
if (it->delete_me) return;
- it->gic = gic;
+ it->itc = itc;
elm_gengrid_item_update(it);
}
if (it->realized)
{
if (it->disabled)
- edje_object_signal_emit(it->base.view, "elm,state,disabled", "elm");
+ edje_object_signal_emit(VIEW(it), "elm,state,disabled", "elm");
else
- edje_object_signal_emit(it->base.view, "elm,state,enabled", "elm");
+ edje_object_signal_emit(VIEW(it), "elm,state,enabled", "elm");
}
}
if (it->tooltip.del_cb)
it->tooltip.del_cb((void *)it->tooltip.data,
- it->base.widget, it);
+ WIDGET(it), it);
it->tooltip.content_cb = func;
it->tooltip.data = data;
it->tooltip.del_cb = del_cb;
- if (it->base.view)
+ if (VIEW(it))
{
elm_widget_item_tooltip_content_cb_set(it,
it->tooltip.content_cb,
elm_gengrid_item_tooltip_unset(Elm_Gengrid_Item *it)
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
- if ((it->base.view) && (it->tooltip.content_cb))
+ if ((VIEW(it)) && (it->tooltip.content_cb))
elm_widget_item_tooltip_unset(it);
if (it->tooltip.del_cb)
- it->tooltip.del_cb((void *)it->tooltip.data, it->base.widget, it);
+ it->tooltip.del_cb((void *)it->tooltip.data, WIDGET(it), it);
it->tooltip.del_cb = NULL;
it->tooltip.content_cb = NULL;
it->tooltip.data = NULL;
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
eina_stringshare_replace(&it->tooltip.style, style);
- if (it->base.view) elm_widget_item_tooltip_style_set(it, style);
+ if (VIEW(it)) elm_widget_item_tooltip_style_set(it, style);
}
EAPI const char *
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, EINA_FALSE);
it->tooltip.free_size = disable;
- if (it->base.view) return elm_widget_item_tooltip_size_restrict_disable(it, disable);
+ if (VIEW(it)) return elm_widget_item_tooltip_size_restrict_disable(it, disable);
return EINA_TRUE;
}
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
eina_stringshare_replace(&it->mouse_cursor, cursor);
- if (it->base.view) elm_widget_item_cursor_set(it, cursor);
+ if (VIEW(it)) elm_widget_item_cursor_set(it, cursor);
}
EAPI const char *
if (!it->mouse_cursor)
return;
- if (it->base.view)
+ if (VIEW(it))
elm_widget_item_cursor_unset(it);
eina_stringshare_del(it->mouse_cursor);
elm_gengrid_item_gengrid_get(const Elm_Gengrid_Item *it)
{
ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, NULL);
- return it->base.widget;
+ return WIDGET(it);
}
EAPI void