mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-17 06:59:43 -05:00
Add server-decoration skeleton
This commit is contained in:
parent
71ee40e8f1
commit
e521b0404b
5 changed files with 190 additions and 0 deletions
29
include/wlr/types/wlr_server_decoration.h
Normal file
29
include/wlr/types/wlr_server_decoration.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef WLR_TYPES_WLR_SERVER_DECORATION_H
|
||||
#define WLR_TYPES_WLR_SERVER_DECORATION_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
|
||||
struct wlr_server_decoration_manager {
|
||||
struct wl_global *wl_global;
|
||||
struct wl_list decorations; // wlr_server_decoration::link
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
struct wlr_server_decoration {
|
||||
struct wl_resource *resource;
|
||||
struct wl_list link;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
struct wlr_server_decoration_manager *wlr_server_decoration_manager_create(
|
||||
struct wl_display *display);
|
||||
void wlr_server_decoration_manager_destroy(
|
||||
struct wlr_server_decoration_manager *manager);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue