libweston: Migrate functions that operate on 'weston_spring'

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
dev
Marius Vlad 5 years ago committed by Daniel Stone
parent f1a6594ad7
commit 4e1d0973f5
  1. 8
      include/libweston/libweston.h
  2. 11
      libweston/libweston-internal.h
  3. 1
      libweston/zoom.c

@ -1639,14 +1639,6 @@ weston_view_from_global_fixed(struct weston_view *view,
wl_fixed_t x, wl_fixed_t y, wl_fixed_t x, wl_fixed_t y,
wl_fixed_t *vx, wl_fixed_t *vy); 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 void
weston_view_activate(struct weston_view *view, weston_view_activate(struct weston_view *view,
struct weston_seat *seat, struct weston_seat *seat,

@ -263,4 +263,15 @@ weston_surface_to_buffer_region(struct weston_surface *surface,
pixman_region32_t *buffer_region); pixman_region32_t *buffer_region);
void void
weston_surface_schedule_repaint(struct weston_surface *surface); 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 #endif

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

Loading…
Cancel
Save