libweston: Migrate functions that operate on 'weston_spring'

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2019-07-10 20:56:04 +03:00 committed by Daniel Stone
parent f1a6594ad7
commit 4e1d0973f5
3 changed files with 12 additions and 8 deletions

View File

@ -1639,14 +1639,6 @@ weston_view_from_global_fixed(struct weston_view *view,
wl_fixed_t x, wl_fixed_t y,
wl_fixed_t *vx, wl_fixed_t *vy);
void
weston_spring_init(struct weston_spring *spring,
double k, double current, double target);
void
weston_spring_update(struct weston_spring *spring, const struct timespec *time);
int
weston_spring_done(struct weston_spring *spring);
void
weston_view_activate(struct weston_view *view,
struct weston_seat *seat,

View File

@ -263,4 +263,15 @@ weston_surface_to_buffer_region(struct weston_surface *surface,
pixman_region32_t *buffer_region);
void
weston_surface_schedule_repaint(struct weston_surface *surface);
/* weston_spring */
void
weston_spring_init(struct weston_spring *spring,
double k, double current, double target);
int
weston_spring_done(struct weston_spring *spring);
void
weston_spring_update(struct weston_spring *spring, const struct timespec *time);
#endif

View File

@ -31,6 +31,7 @@
#include <stdbool.h>
#include <libweston/libweston.h>
#include "libweston-internal.h"
#include "text-cursor-position-server-protocol.h"
#include "shared/helpers.h"