summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman@collabora.com>2022-12-12 13:28:28 -0600
committerDerek Foreman <derek.foreman@collabora.com>2023-02-01 07:27:05 -0600
commitfe4d5711bf6d8e3dae9e850c418dcfbb9ec0df39 (patch)
tree75f322c18fa99f71b9021b2db96adb50675712eb /include
parent4eea29151240eb95564f137e6e612f9d583d3daf (diff)
downloadweston-fe4d5711bf6d8e3dae9e850c418dcfbb9ec0df39.tar.gz
libweston: Split weston_view_set_position() into rel and abs variants
One variant is used when a view is being positioned relative to a parent, the other is when the view is being given an absolute position in the global space. This will help later when surface and global coordinates are different data types, but for now the two functions do essentially the same thing. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/libweston/libweston.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h
index 3087235c..31765a70 100644
--- a/include/libweston/libweston.h
+++ b/include/libweston/libweston.h
@@ -1962,6 +1962,10 @@ void
weston_view_destroy(struct weston_view *view);
void
+weston_view_set_rel_position(struct weston_view *view,
+ float x, float y);
+
+void
weston_view_set_position(struct weston_view *view,
float x, float y);