Eina_Bool decorate_it_set : 1; /**< item uses style mode for highlight/select */
Eina_Bool flipped : 1; /**< a flag that shows the flip status of the item. */
Eina_Bool has_contents : 1; /**< content objs have or previously did exist (size calcs) */
+ Eina_Bool cursor_engine_only : 1;
};
#endif
if (it->mouse_cursor)
eo_do(eo_it, elm_wdg_item_cursor_set(it->mouse_cursor));
+ if (it->cursor_engine_only)
+ eo_do(eo_it, elm_wdg_item_cursor_engine_only_set(it->cursor_engine_only));
+
if (eo_it == sd->focused_item)
{
const char *focus_raise;
}
EAPI void
-elm_gengrid_item_cursor_engine_only_set(Elm_Object_Item *it,
+elm_gengrid_item_cursor_engine_only_set(Elm_Object_Item *eo_it,
Eina_Bool engine_only)
{
- eo_do(it, elm_wdg_item_cursor_engine_only_set(engine_only));
+ ELM_GENGRID_ITEM_DATA_GET(eo_it, it);
+ it->cursor_engine_only = engine_only;
+ if (it->realized)
+ eo_do(eo_it, elm_wdg_item_cursor_engine_only_set(engine_only));
}
EAPI Eina_Bool
-elm_gengrid_item_cursor_engine_only_get(const Elm_Object_Item *it)
+elm_gengrid_item_cursor_engine_only_get(const Elm_Object_Item *eo_it)
{
- return eo_do( it, elm_wdg_item_cursor_engine_only_get());
+ ELM_GENGRID_ITEM_DATA_GET(eo_it, it);
+ Eina_Bool ret;
+ if (it->realized)
+ return eo_do(eo_it, elm_wdg_item_cursor_engine_only_get());
+ else return it->cursor_engine_only;
}
EAPI void