forked from enlightenment/efl
evas/map: make an internal function to static.
no need this function set external.
This commit is contained in:
parent
4c864f757a
commit
d85d9672b5
|
@ -108,6 +108,42 @@ _evas_map_calc_map_geometry(Evas_Object *eo_obj)
|
|||
if (ch) _evas_map_calc_geom_change(eo_obj);
|
||||
}
|
||||
|
||||
static void
|
||||
evas_object_map_move_sync(Evas_Object *eo_obj)
|
||||
{
|
||||
Evas_Object_Protected_Data *obj;
|
||||
Evas_Map *m;
|
||||
Evas_Map_Point *p;
|
||||
Evas_Coord diff_x, diff_y;
|
||||
int i, count;
|
||||
|
||||
obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
|
||||
if (!obj) return;
|
||||
|
||||
if ((!obj->map->cur.map->move_sync.enabled) ||
|
||||
((obj->map->cur.map->move_sync.diff_x == 0) &&
|
||||
(obj->map->cur.map->move_sync.diff_y == 0)))
|
||||
return;
|
||||
|
||||
m = obj->map->cur.map;
|
||||
p = m->points;
|
||||
count = m->count;
|
||||
diff_x = m->move_sync.diff_x;
|
||||
diff_y = m->move_sync.diff_y;
|
||||
|
||||
for (i = 0; i < count; i++, p++)
|
||||
{
|
||||
p->px += diff_x;
|
||||
p->py += diff_y;
|
||||
p->x += diff_x;
|
||||
p->y += diff_y;
|
||||
}
|
||||
m->move_sync.diff_x = 0;
|
||||
m->move_sync.diff_y = 0;
|
||||
|
||||
_evas_map_calc_map_geometry(eo_obj);
|
||||
}
|
||||
|
||||
static inline Evas_Map *
|
||||
_evas_map_new(int count)
|
||||
{
|
||||
|
@ -1321,39 +1357,3 @@ evas_map_object_move_diff_set(Evas_Map *m,
|
|||
m->move_sync.diff_x += diff_x;
|
||||
m->move_sync.diff_y += diff_y;
|
||||
}
|
||||
|
||||
void
|
||||
evas_object_map_move_sync(Evas_Object *eo_obj)
|
||||
{
|
||||
Evas_Object_Protected_Data *obj;
|
||||
Evas_Map *m;
|
||||
Evas_Map_Point *p;
|
||||
Evas_Coord diff_x, diff_y;
|
||||
int i, count;
|
||||
|
||||
obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
|
||||
if (!obj) return;
|
||||
|
||||
if ((!obj->map->cur.map->move_sync.enabled) ||
|
||||
((obj->map->cur.map->move_sync.diff_x == 0) &&
|
||||
(obj->map->cur.map->move_sync.diff_y == 0)))
|
||||
return;
|
||||
|
||||
m = obj->map->cur.map;
|
||||
p = m->points;
|
||||
count = m->count;
|
||||
diff_x = m->move_sync.diff_x;
|
||||
diff_y = m->move_sync.diff_y;
|
||||
|
||||
for (i = 0; i < count; i++, p++)
|
||||
{
|
||||
p->px += diff_x;
|
||||
p->py += diff_y;
|
||||
p->x += diff_x;
|
||||
p->y += diff_y;
|
||||
}
|
||||
m->move_sync.diff_x = 0;
|
||||
m->move_sync.diff_y = 0;
|
||||
|
||||
_evas_map_calc_map_geometry(eo_obj);
|
||||
}
|
||||
|
|
|
@ -1733,7 +1733,6 @@ Eina_Bool evas_map_inside_get(const Evas_Map *m, Evas_Coord x, Evas_Coord y);
|
|||
Eina_Bool evas_map_coords_get(const Evas_Map *m, Evas_Coord x, Evas_Coord y, Evas_Coord *mx, Evas_Coord *my, int grab);
|
||||
Eina_Bool evas_object_map_update(Evas_Object *obj, int x, int y, int imagew, int imageh, int uvw, int uvh);
|
||||
void evas_map_object_move_diff_set(Evas_Map *m, Evas_Coord diff_x, Evas_Coord diff_y);
|
||||
void evas_object_map_move_sync(Evas_Object *obj);
|
||||
|
||||
Eina_List *evas_module_engine_list(void);
|
||||
|
||||
|
|
Loading…
Reference in New Issue