cage/output.h

39 lines
1.4 KiB
C
Raw Normal View History

#ifndef CG_OUTPUT_H
#define CG_OUTPUT_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_output.h>
2019-01-20 13:42:36 +01:00
#include <wlr/types/wlr_output_damage.h>
#include "server.h"
2019-01-20 13:42:36 +01:00
#include "view.h"
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;
2019-01-10 15:50:31 +01:00
struct wl_listener mode;
2019-01-20 14:11:52 +01:00
struct wl_listener transform;
struct wl_listener destroy;
2019-01-20 13:42:36 +01:00
struct wl_listener damage_frame;
struct wl_listener damage_destroy;
2019-12-22 01:01:06 +01:00
struct wl_list link; // cg_server::outputs
};
2020-02-17 19:49:47 +01:00
typedef void (*cg_surface_iterator_func_t)(struct cg_output *output, struct wlr_surface *surface, struct wlr_box *box,
void *user_data);
void handle_new_output(struct wl_listener *listener, void *data);
2020-02-17 19:49:47 +01:00
void output_surface_for_each_surface(struct cg_output *output, struct wlr_surface *surface, double ox, double oy,
cg_surface_iterator_func_t iterator, void *user_data);
void output_view_for_each_popup(struct cg_output *output, struct cg_view *view, cg_surface_iterator_func_t iterator,
void *user_data);
2020-02-17 19:49:47 +01:00
void output_drag_icons_for_each_surface(struct cg_output *output, struct wl_list *drag_icons,
cg_surface_iterator_func_t iterator, void *user_data);
void output_damage_surface(struct cg_output *output, struct wlr_surface *surface, double lx, double ly, bool whole);
2019-02-16 00:54:04 +01:00
void output_set_window_title(struct cg_output *output, const char *title);
#endif