}
}
-EINTERN void
-e_comp_object_shape_apply(Evas_Object *obj)
-{
- Eina_List *l;
- Evas_Object *o;
- unsigned int *pix, *p;
- int w, h, px, py;
-
- API_ENTRY;
- if (!cw->ec) return; //NYI
- if (cw->external_content) return;
- if (cw->native)
- {
- ERR("BUGGER: shape with native surface? cw=%p", cw);
- return;
- }
- evas_object_image_size_get(cw->obj, &w, &h);
- if ((w < 1) || (h < 1)) return;
-
- _e_comp_object_alpha_set(cw);
- EINA_LIST_FOREACH(cw->obj_mirror, l, o)
- evas_object_image_alpha_set(o, 1);
-
- p = pix = evas_object_image_data_get(cw->obj, 1);
- if (!pix)
- {
- evas_object_image_data_set(cw->obj, pix);
- return;
- }
-
- for (py = 0; py < h; py++)
- {
- for (px = 0; px < w; px++)
- *p |= 0xff000000;
- }
-
- evas_object_image_data_set(cw->obj, pix);
- evas_object_image_data_update_add(cw->obj, 0, 0, w, h);
- EINA_LIST_FOREACH(cw->obj_mirror, l, o)
- {
- evas_object_image_data_set(o, pix);
- evas_object_image_data_update_add(o, 0, 0, w, h);
- }
-// don't need to fix alpha chanel as blending
-// should be totally off here regardless of
-// alpha channel content
-}
-
static void
_e_comp_object_clear(E_Comp_Object *cw)
{
EINTERN Eina_Bool e_comp_object_frame_theme_set(Evas_Object *obj, const char *name);
EINTERN Eina_Bool e_comp_object_damage_exists(Evas_Object *obj);
-EINTERN void e_comp_object_shape_apply(Evas_Object *obj);
EINTERN void e_comp_object_redirected_set(Evas_Object *obj, Eina_Bool set);
EINTERN void e_comp_object_size_update(Evas_Object *obj, int w, int h);