diff options
Diffstat (limited to 'src/view/view_base.c')
-rw-r--r-- | src/view/view_base.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/view/view_base.c b/src/view/view_base.c index 29c1c72..fdc7ef6 100644 --- a/src/view/view_base.c +++ b/src/view/view_base.c @@ -116,3 +116,14 @@ void view_base_set_position(Evas_Object *obj, int pos_x, int pos_y, evas_object_move(obj, x, y); } + +void view_base_set_angle(Evas_Object *image, float angle, float rotation_center_x, float rotation_center_y) +{ + Evas_Map *map = evas_map_new(4); + evas_map_util_points_populate_from_object(map, image); + evas_map_util_rotate(map, angle, rotation_center_x, rotation_center_y); + evas_object_map_set(image, map); + evas_object_map_enable_set(image, true); + evas_map_free(map); +} + |