mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Add wlr_xdg_output_manager
This commit is contained in:
parent
9a30a4f557
commit
abfe7923c4
6 changed files with 219 additions and 0 deletions
|
|
@ -32,6 +32,11 @@ struct wlr_output_layout_output {
|
|||
} events;
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a wlr_output_layout, which can be used to describing outputs in
|
||||
* physical space relative to one another, and perform various useful operations
|
||||
* on that state.
|
||||
*/
|
||||
struct wlr_output_layout *wlr_output_layout_create();
|
||||
|
||||
void wlr_output_layout_destroy(struct wlr_output_layout *layout);
|
||||
|
|
|
|||
32
include/wlr/types/wlr_xdg_output.h
Normal file
32
include/wlr/types/wlr_xdg_output.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#ifndef WLR_TYPES_WLR_XDG_OUTPUT_H
|
||||
#define WLR_TYPES_WLR_XDG_OUTPUT_H
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/types/wlr_output_layout.h>
|
||||
|
||||
struct wlr_xdg_output {
|
||||
struct wl_list link;
|
||||
struct wl_list resources;
|
||||
|
||||
struct wlr_xdg_output_manager *manager;
|
||||
struct wlr_output_layout_output *layout_output;
|
||||
|
||||
struct wl_listener destroy;
|
||||
};
|
||||
|
||||
struct wlr_xdg_output_manager {
|
||||
struct wl_global *global;
|
||||
|
||||
struct wlr_output_layout *layout;
|
||||
|
||||
struct wl_list outputs;
|
||||
|
||||
struct wl_listener layout_add;
|
||||
struct wl_listener layout_change;
|
||||
struct wl_listener layout_destroy;
|
||||
};
|
||||
|
||||
struct wlr_xdg_output_manager *wlr_xdg_output_manager_create(
|
||||
struct wl_display *display, struct wlr_output_layout *layout);
|
||||
void wlr_xdg_output_manager_destroy(struct wlr_xdg_output_manager *manager);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue