EINA_COW_STATE_WRITE_END(clip, state_write, cur);
if (clip->changed)
- evas_object_update_bounding_box(eo_clip, clip);
+ evas_object_update_bounding_box(eo_clip, clip, NULL);
}
evas_object_change(eo_clip, clip);
else
{
if (_evas_object_map_parent_check(obj->smart.parent))
- evas_object_update_bounding_box(eo_obj, obj);
+ evas_object_update_bounding_box(eo_obj, obj, NULL);
}
}
}
EINA_COW_STATE_WRITE_END(obj, state_write, cur);
- evas_object_update_bounding_box(eo_obj, obj);
+ evas_object_update_bounding_box(eo_obj, obj, NULL);
//// obj->cur->cache.geometry.validity = 0;
obj->changed_move = EINA_TRUE;
}
EINA_COW_STATE_WRITE_END(obj, state_write, cur);
- evas_object_update_bounding_box(eo_obj, obj);
+ evas_object_update_bounding_box(eo_obj, obj, NULL);
//// obj->cur->cache.geometry.validity = 0;
evas_object_change(eo_obj, obj);
Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
Evas_Object_Protected_Data *smart = eo_data_scope_get(smart_obj, EVAS_OBJECT_CLASS);
- Evas_Smart_Data *member_o;
+ Evas_Smart_Data *member_o = NULL;
if (obj->delete_me)
{
evas_object_mapped_clip_across_mark(eo_obj, obj);
if (smart->smart.smart && smart->smart.smart->smart_class->member_add)
smart->smart.smart->smart_class->member_add(smart_obj, eo_obj);
- evas_object_update_bounding_box(eo_obj, obj);
+ evas_object_update_bounding_box(eo_obj, obj, member_o);
}
EAPI void
}
void
-evas_object_update_bounding_box(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
+evas_object_update_bounding_box(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj, Evas_Smart_Data *s)
{
- Evas_Smart_Data *s = NULL;
Eina_Bool propagate = EINA_FALSE;
Eina_Bool computeminmax = EINA_FALSE;
Evas_Coord x, y, w, h;
if (obj->is_smart)
{
- s = eo_data_scope_get(eo_obj, MY_CLASS);
+ s = s == NULL ? eo_data_scope_get(eo_obj, MY_CLASS) : s;
x = s->cur.bounding_box.x;
y = s->cur.bounding_box.y;
/* We are not yet trying to find the smallest bounding box, but we want to find a good approximation quickly.
* That's why we initialiaze min and max search to geometry of the parent object.
*/
- Evas_Object_Protected_Data *smart_obj = eo_data_scope_get(obj->smart.parent, EVAS_OBJECT_CLASS);
- Evas_Smart_Data *smart_parent = eo_data_scope_get(obj->smart.parent, MY_CLASS);
+ Evas_Object_Protected_Data *smart_obj = obj->smart.parent_object_data;
+ Evas_Smart_Data *smart_parent = obj->smart.parent_data;
if (!smart_parent || !smart_obj) return;
if (smart_obj->cur->valid_bounding_box)
}
if (propagate)
- evas_object_update_bounding_box(obj->smart.parent, smart_obj);
+ evas_object_update_bounding_box(obj->smart.parent, smart_obj, smart_parent);
}
void
evas_object_change(obj->cur->clipper->object, obj->cur->clipper);
evas_object_clip_dirty(obj->cur->clipper->object, obj->cur->clipper);
evas_object_clip_recalc(obj->cur->clipper);
- evas_object_update_bounding_box(eo_obj, obj);
+ evas_object_update_bounding_box(eo_obj, obj, NULL);
}
if (obj->changed)
{
evas_object_change(obj->cur->clipper->object, obj->cur->clipper);
evas_object_clip_dirty(obj->cur->clipper->object, obj->cur->clipper);
evas_object_clip_recalc(obj->cur->clipper);
- evas_object_update_bounding_box(eo_obj, obj);
+ evas_object_update_bounding_box(eo_obj, obj, NULL);
}
}
void evas_object_change_reset(Evas_Object *obj);
void evas_object_cur_prev(Evas_Object *obj);
void evas_object_free(Evas_Object *obj, int clean_layer);
-void evas_object_update_bounding_box(Evas_Object *obj, Evas_Object_Protected_Data *pd);
+void evas_object_update_bounding_box(Evas_Object *obj, Evas_Object_Protected_Data *pd, Evas_Smart_Data *s);
void evas_object_inject(Evas_Object *obj, Evas_Object_Protected_Data *pd, Evas *e);
void evas_object_release(Evas_Object *obj, Evas_Object_Protected_Data *pd, int clean_layer);
void evas_object_change(Evas_Object *obj, Evas_Object_Protected_Data *pd);
void _evas_object_image_video_overlay_do(Evas_Object *obj);
void _evas_object_image_free(Evas_Object *obj);
void evas_object_smart_bounding_box_get(Evas_Object *eo_obj,
- Evas_Coord_Rectangle *cur_bounding_box,
- Evas_Coord_Rectangle *prev_bounding_box);
-void evas_object_update_bounding_box(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj);
+ Evas_Coord_Rectangle *cur_bounding_box,
+ Evas_Coord_Rectangle *prev_bounding_box);
void evas_object_smart_del(Evas_Object *obj);
void evas_object_smart_cleanup(Evas_Object *obj);
void evas_object_smart_member_raise(Evas_Object *member);