summaryrefslogtreecommitdiff
path: root/src/compositor.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2013-11-19 11:37:13 +0100
committerKristian Høgsberg <krh@bitplanet.net>2013-11-19 11:49:28 -0800
commita67e6b98189092e78b9f35e675e9c15940d3a798 (patch)
treeba83352ef0e24ec047d343ddf68496deaba9a820 /src/compositor.h
parent96d47c0ef7c8fa7824cd0f3bebb7e152bfc06418 (diff)
downloadweston-a67e6b98189092e78b9f35e675e9c15940d3a798.tar.gz
Add move/scale animation
Add an animation which moves a surface to a new location, at the same time as also rescaling it to a different size from the origin, rather than the existing scale animation which resizes from the centre. [pochu: rebased, ported to weston_view]
Diffstat (limited to 'src/compositor.h')
-rw-r--r--src/compositor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compositor.h b/src/compositor.h
index ea53f3f9..a8504afd 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -1298,6 +1298,12 @@ struct weston_view_animation *
weston_fade_run(struct weston_view *view,
float start, float end, float k,
weston_view_animation_done_func_t done, void *data);
+
+struct weston_view_animation *
+weston_move_scale_run(struct weston_view *view, int dx, int dy,
+ float start, float end, int reverse,
+ weston_view_animation_done_func_t done, void *data);
+
void
weston_fade_update(struct weston_view_animation *fade, float target);