mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-26 06:59:52 -05:00
viewporter: new protocol implementation
Closes: https://github.com/swaywm/wlroots/issues/633
This commit is contained in:
parent
c618a76540
commit
9e68ed2159
4 changed files with 260 additions and 0 deletions
34
include/wlr/types/wlr_viewporter.h
Normal file
34
include/wlr/types/wlr_viewporter.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* This an unstable interface of wlroots. No guarantees are made regarding the
|
||||
* future consistency of this API.
|
||||
*/
|
||||
#ifndef WLR_USE_UNSTABLE
|
||||
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
||||
#endif
|
||||
|
||||
#ifndef WLR_TYPES_WLR_VIEWPORTER_H
|
||||
#define WLR_TYPES_WLR_VIEWPORTER_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
|
||||
struct wlr_viewporter {
|
||||
struct wl_global *global;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
|
||||
struct wl_listener display_destroy;
|
||||
};
|
||||
|
||||
struct wlr_viewport {
|
||||
struct wl_resource *resource;
|
||||
struct wlr_surface *surface;
|
||||
|
||||
struct wl_listener surface_destroy;
|
||||
struct wl_listener surface_commit;
|
||||
};
|
||||
|
||||
struct wlr_viewporter *wlr_viewporter_create(struct wl_display *display);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue