2018-12-31 00:12:33 +01:00
|
|
|
#ifndef CG_OUTPUT_H
|
|
|
|
|
#define CG_OUTPUT_H
|
|
|
|
|
|
|
|
|
|
#include <wayland-server.h>
|
|
|
|
|
#include <wlr/types/wlr_output.h>
|
2019-01-20 13:42:36 +01:00
|
|
|
#include <wlr/types/wlr_output_damage.h>
|
2018-12-31 00:12:33 +01:00
|
|
|
|
2019-01-20 13:42:36 +01:00
|
|
|
#include "seat.h"
|
2018-12-31 00:12:33 +01:00
|
|
|
#include "server.h"
|
2019-01-20 13:42:36 +01:00
|
|
|
#include "view.h"
|
2018-12-31 00:12:33 +01:00
|
|
|
|
|
|
|
|
struct cg_output {
|
|
|
|
|
struct cg_server *server;
|
|
|
|
|
struct wlr_output *wlr_output;
|
2019-01-20 13:42:36 +01:00
|
|
|
struct wlr_output_damage *damage;
|
2018-12-31 00:12:33 +01:00
|
|
|
|
2019-01-10 15:50:31 +01:00
|
|
|
struct wl_listener mode;
|
2019-01-20 14:11:52 +01:00
|
|
|
struct wl_listener transform;
|
2018-12-31 00:12:33 +01:00
|
|
|
struct wl_listener destroy;
|
2019-01-20 13:42:36 +01:00
|
|
|
struct wl_listener damage_frame;
|
|
|
|
|
struct wl_listener damage_destroy;
|
2018-12-31 00:12:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void handle_new_output(struct wl_listener *listener, void *data);
|
2019-01-20 13:42:36 +01:00
|
|
|
void output_damage_view_surface(struct cg_output *output, struct cg_view *view);
|
2019-02-13 18:50:08 +01:00
|
|
|
void output_damage_view_whole(struct cg_output *cg_output, struct cg_view *view);
|
2019-01-20 13:42:36 +01:00
|
|
|
void output_damage_drag_icon(struct cg_output *output, struct cg_drag_icon *icon);
|
2019-02-16 00:54:04 +01:00
|
|
|
void output_set_window_title(struct cg_output *output, const char *title);
|
2018-12-31 00:12:33 +01:00
|
|
|
|
|
|
|
|
#endif
|