2018-07-13 14:40:56 +02:00
|
|
|
/*
|
|
|
|
* 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-02-12 21:29:23 +01:00
|
|
|
#ifndef WLR_TYPES_WLR_SCREENSHOOTER_H
|
|
|
|
#define WLR_TYPES_WLR_SCREENSHOOTER_H
|
|
|
|
|
2017-09-07 17:31:30 +02:00
|
|
|
#include <wayland-server.h>
|
|
|
|
|
|
|
|
struct wlr_screenshooter {
|
2018-07-08 20:21:31 +02:00
|
|
|
struct wl_global *global;
|
2017-12-07 00:13:06 +01:00
|
|
|
struct wl_list screenshots; // wlr_screenshot::link
|
|
|
|
|
|
|
|
struct wl_listener display_destroy;
|
|
|
|
|
2018-08-26 23:23:12 +02:00
|
|
|
struct {
|
|
|
|
struct wl_signal destroy;
|
|
|
|
} events;
|
|
|
|
|
2017-09-07 17:31:30 +02:00
|
|
|
void *data;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_screenshot {
|
|
|
|
struct wl_resource *resource;
|
2017-10-08 02:11:56 +02:00
|
|
|
struct wl_resource *output_resource;
|
2017-12-07 00:13:06 +01:00
|
|
|
struct wl_list link;
|
2017-10-08 02:11:56 +02:00
|
|
|
|
|
|
|
struct wlr_output *output;
|
|
|
|
struct wlr_screenshooter *screenshooter;
|
2017-09-07 17:31:30 +02:00
|
|
|
|
|
|
|
void* data;
|
|
|
|
};
|
|
|
|
|
2018-01-23 22:06:54 +01:00
|
|
|
struct wlr_screenshooter *wlr_screenshooter_create(struct wl_display *display);
|
2017-09-07 17:31:30 +02:00
|
|
|
void wlr_screenshooter_destroy(struct wlr_screenshooter *screenshooter);
|
|
|
|
|
|
|
|
#endif
|