wlroots/include/wlr/types/wlr_xdg_output_v1.h

48 lines
1.1 KiB
C
Raw Normal View History

/*
* 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
2018-09-14 17:29:08 +00:00
#ifndef WLR_TYPES_WLR_XDG_OUTPUT_V1_H
#define WLR_TYPES_WLR_XDG_OUTPUT_V1_H
#include <wayland-server-core.h>
2018-04-05 16:22:19 +00:00
#include <wlr/types/wlr_output_layout.h>
2018-09-14 17:29:08 +00:00
struct wlr_xdg_output_v1 {
struct wlr_xdg_output_manager_v1 *manager;
2018-04-05 16:22:19 +00:00
struct wl_list resources;
2018-05-11 21:30:26 +00:00
struct wl_list link;
2018-04-05 16:22:19 +00:00
struct wlr_output_layout_output *layout_output;
int32_t x, y;
int32_t width, height;
2018-04-05 16:22:19 +00:00
struct wl_listener destroy;
struct wl_listener description;
2018-04-05 16:22:19 +00:00
};
2018-09-14 17:29:08 +00:00
struct wlr_xdg_output_manager_v1 {
2018-04-05 16:22:19 +00:00
struct wl_global *global;
struct wlr_output_layout *layout;
struct wl_list outputs;
struct {
struct wl_signal destroy;
} events;
struct wl_listener display_destroy;
struct wl_listener layout_add;
struct wl_listener layout_change;
struct wl_listener layout_destroy;
2018-04-05 16:22:19 +00:00
};
2018-09-14 17:29:08 +00:00
struct wlr_xdg_output_manager_v1 *wlr_xdg_output_manager_v1_create(
struct wl_display *display, struct wlr_output_layout *layout);
2018-04-05 16:22:19 +00:00
#endif