wlroots-hyprland/include/wlr/types/wlr_screenshooter.h

50 lines
1.1 KiB
C
Raw Normal View History

2019-02-08 23:43:59 +01:00
/*
* This protocol is obsolete and will be removed in a future version. The
* recommended replacement is wlr-screencopy.
*/
/*
* 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>
2019-02-08 23:43:59 +01:00
/**
* A very basic screenshooter interrface which implements the Orbital protocol.
*/
2017-09-07 17:31:30 +02:00
struct wlr_screenshooter {
struct wl_global *global;
struct wl_list screenshots; // wlr_screenshot::link
struct wl_listener display_destroy;
struct {
struct wl_signal destroy;
} events;
2017-09-07 17:31:30 +02:00
void *data;
};
struct wlr_screenshot {
struct wl_resource *resource;
struct wl_resource *output_resource;
struct wl_list link;
struct wlr_output *output;
struct wlr_screenshooter *screenshooter;
2017-09-07 17:31:30 +02:00
void* data;
};
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