libweston: Migrate functions that operate on 'weston_view'

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
dev
Marius Vlad 5 years ago committed by Daniel Stone
parent 4e1d0973f5
commit 7e4f58faa3
  1. 13
      include/libweston/libweston.h
  2. 17
      libweston/libweston-internal.h
  3. 1
      tests/surface-global-test.c

@ -1620,18 +1620,11 @@ weston_view_update_transform(struct weston_view *view);
void void
weston_view_geometry_dirty(struct weston_view *view); weston_view_geometry_dirty(struct weston_view *view);
void
weston_view_to_global_fixed(struct weston_view *view,
wl_fixed_t sx, wl_fixed_t sy,
wl_fixed_t *x, wl_fixed_t *y);
void void
weston_view_to_global_float(struct weston_view *view, weston_view_to_global_float(struct weston_view *view,
float sx, float sy, float *x, float *y); float sx, float sy, float *x, float *y);
void void
weston_view_from_global_float(struct weston_view *view,
float x, float y, float *vx, float *vy);
void
weston_view_from_global(struct weston_view *view, weston_view_from_global(struct weston_view *view,
int32_t x, int32_t y, int32_t *vx, int32_t *vy); int32_t x, int32_t y, int32_t *vx, int32_t *vy);
void void
@ -1851,9 +1844,6 @@ weston_view_set_mask_infinite(struct weston_view *view);
bool bool
weston_view_is_mapped(struct weston_view *view); weston_view_is_mapped(struct weston_view *view);
bool
weston_view_is_opaque(struct weston_view *ev, pixman_region32_t *region);
void void
weston_view_schedule_repaint(struct weston_view *view); weston_view_schedule_repaint(struct weston_view *view);
@ -1870,9 +1860,6 @@ weston_surface_damage(struct weston_surface *surface);
void void
weston_view_damage_below(struct weston_view *view); weston_view_damage_below(struct weston_view *view);
void
weston_view_move_to_plane(struct weston_view *view,
struct weston_plane *plane);
void void
weston_view_unmap(struct weston_view *view); weston_view_unmap(struct weston_view *view);

@ -274,4 +274,21 @@ weston_spring_done(struct weston_spring *spring);
void void
weston_spring_update(struct weston_spring *spring, const struct timespec *time); weston_spring_update(struct weston_spring *spring, const struct timespec *time);
/* weston_view */
void
weston_view_to_global_fixed(struct weston_view *view,
wl_fixed_t sx, wl_fixed_t sy,
wl_fixed_t *x, wl_fixed_t *y);
void
weston_view_from_global_float(struct weston_view *view,
float x, float y, float *vx, float *vy);
bool
weston_view_is_opaque(struct weston_view *ev, pixman_region32_t *region);
void
weston_view_move_to_plane(struct weston_view *view,
struct weston_plane *plane);
#endif #endif

@ -29,6 +29,7 @@
#include <stdint.h> #include <stdint.h>
#include <libweston/libweston.h> #include <libweston/libweston.h>
#include "libweston-internal.h"
#include "compositor/weston.h" #include "compositor/weston.h"
static void static void

Loading…
Cancel
Save