e_view_client_xy_unadjust and e_comp_object_xy_unadjust are useless.
Change-Id: I7f113a627e767ee45027034c5e94b771ae3b5d6b
}
/* utility functions for getting client inset */
-E_API void
-e_comp_object_frame_xy_unadjust(Evas_Object *obj, int x, int y, int *ax, int *ay)
-{
- API_ENTRY;
-
- // TODO: this function will be removed
- if (ax) *ax = x;
- if (ay) *ay = y;
-}
-
E_API void
e_comp_object_frame_wh_adjust(Evas_Object *obj, int w, int h, int *aw, int *ah)
{
return e_comp_object_mask_has(client->view.eo);
}
-E_API void
-e_view_client_frame_xy_unadjust(E_View_Client *client, int x, int y, int *ax, int *ay)
-{
- if (client == NULL) return;
-
- e_comp_object_frame_xy_unadjust(client->view.eo, x, y, ax, ay);
-}
-
E_API void
e_view_client_frame_wh_adjust(E_View_Client *client, int width, int height, int *aw, int *ah)
{
out->w = (out->w + 1) & ~1;
out->h = ec->comp_data->height_from_viewport;
- e_view_client_frame_xy_unadjust(e_client_view_get(ec), out->x, out->y, &out->x, &out->y);
e_view_client_frame_wh_unadjust(e_client_view_get(ec), out->w, out->h, &out->w, &out->h);
}
/* update the position */
if (ec->changes.pos)
{
- e_view_client_frame_xy_unadjust(e_client_view_get(ec),
- ec->x, ec->y,
- &x, &y);
+ x = ec->x;
+ y = ec->y;
}
else
{
out->w = (out->w + 1) & ~1;
out->h = ec->comp_data->height_from_viewport;
- e_view_client_frame_xy_unadjust(e_client_view_get(ec), out->x, out->y, &out->x, &out->y);
e_view_client_frame_wh_unadjust(e_client_view_get(ec), out->w, out->h, &out->w, &out->h);
}
default: ev.button = comp_wl->ptr.button; break;
}
- e_view_client_frame_xy_unadjust(e_client_view_get(ec),
- wl_fixed_to_int(comp_wl->ptr.x),
- wl_fixed_to_int(comp_wl->ptr.y),
- &ev.canvas.x,
- &ev.canvas.y);
+ ev.canvas.x = wl_fixed_to_int(comp_wl->ptr.x);
+ ev.canvas.y = wl_fixed_to_int(comp_wl->ptr.y);
_e_shell_e_client_mouse_down_helper(ec, &ev, EINA_TRUE, 0);
default: ev.button = comp_wl->ptr.button; break;
}
- e_view_client_frame_xy_unadjust(e_client_view_get(ec),
- wl_fixed_to_int(comp_wl->ptr.x),
- wl_fixed_to_int(comp_wl->ptr.y),
- &ev.canvas.x,
- &ev.canvas.y);
+ ev.canvas.x = wl_fixed_to_int(comp_wl->ptr.x);
+ ev.canvas.y = wl_fixed_to_int(comp_wl->ptr.y);
_e_shell_e_client_mouse_down_helper(ec, &ev, EINA_FALSE, edges);
E_API Evas_Object *e_comp_object_util_mirror_add(Evas_Object *obj);
-E_API void e_comp_object_frame_xy_unadjust(Evas_Object *obj, int x, int y, int *ax, int *ay);
E_API void e_comp_object_frame_wh_adjust(Evas_Object *obj, int w, int h, int *aw, int *ah);
E_API void e_comp_object_frame_wh_unadjust(Evas_Object *obj, int w, int h, int *aw, int *ah);
void e_view_client_mask_set(E_View_Client *client, bool set);
bool e_view_client_mask_has(E_View_Client *client);
-void e_view_client_frame_xy_unadjust(E_View_Client *client, int x, int y, int *ax, int *ay);
void e_view_client_frame_wh_adjust(E_View_Client *client, int width, int height, int *aw, int *ah);
void e_view_client_frame_wh_unadjust(E_View_Client *client, int width, int height, int *aw, int *ah);