libweston: Add move (without scale) animation
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
diff --git a/libweston/compositor.h b/libweston/compositor.h
index 534c8c2..c78cc3b 100644
--- a/libweston/compositor.h
+++ b/libweston/compositor.h
@@ -1707,9 +1707,14 @@
struct weston_view_animation *
weston_move_scale_run(struct weston_view *view, int dx, int dy,
- float start, float end, int reverse,
+ float start, float end, bool reverse,
weston_view_animation_done_func_t done, void *data);
+struct weston_view_animation *
+weston_move_run(struct weston_view *view, int dx, int dy,
+ float start, float end, bool reverse,
+ weston_view_animation_done_func_t done, void *data);
+
void
weston_fade_update(struct weston_view_animation *fade, float target);