EAPI void evas_object_focus_set(Evas_Object *obj, Eina_Bool focus) { MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); return; MAGIC_CHECK_END(); _evas_object_event_new(); if (focus) { if (obj->focused) goto end; if (obj->layer->evas->focused) evas_object_focus_set(obj->layer->evas->focused, 0); obj->focused = 1; obj->layer->evas->focused = obj; evas_object_event_callback_call(obj, EVAS_CALLBACK_FOCUS_IN, NULL); evas_event_callback_call(obj->layer->evas, EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN, obj); } else { if (!obj->focused) goto end; obj->focused = 0; obj->layer->evas->focused = NULL; evas_object_event_callback_call(obj, EVAS_CALLBACK_FOCUS_OUT, NULL); evas_event_callback_call(obj->layer->evas, EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT, obj); } end: _evas_post_event_callback_call(obj->layer->evas); }
void evas_object_inform_call_image_resize(Evas_Object *eo_obj) { Evas_Object_Protected_Data *obj = eo_data_get(eo_obj, EVAS_OBJ_CLASS); _evas_object_event_new(); evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_IMAGE_RESIZE, NULL, _evas_event_counter); _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas); }
void evas_object_inform_call_move(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj) { _evas_object_event_new(); evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOVE, NULL, _evas_event_counter); _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas); }
void evas_object_inform_call_changed_size_hints(Evas_Object *eo_obj) { Evas_Object_Protected_Data *obj = eo_data_get(eo_obj, EVAS_OBJ_CLASS); _evas_object_event_new(); evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS, NULL, _evas_event_counter); _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas); }
void evas_object_inform_call_image_preloaded(Evas_Object *eo_obj) { Evas_Object_Protected_Data *obj = eo_data_get(eo_obj, EVAS_OBJ_CLASS); if (!_evas_object_image_preloading_get(eo_obj)) return; _evas_object_image_preloading_check(eo_obj); _evas_object_image_preloading_set(eo_obj, 0); _evas_object_event_new(); evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_IMAGE_PRELOADED, NULL, _evas_event_counter); _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas); }