wlroots-hyprland/include/wlr/wayland.h

45 lines
876 B
C
Raw Normal View History

#ifndef _WLR_WAYLAND_H
#define _WLR_WAYLAND_H
#include <wayland-server.h>
#include <wlr/common/list.h>
2017-05-07 18:26:48 +02:00
#include <stdbool.h>
2017-05-07 18:26:48 +02:00
struct wlr_output_mode_state;
2017-05-07 18:26:48 +02:00
struct wlr_output_mode {
struct wlr_output_mode_state *state;
2017-04-26 01:19:21 +02:00
uint32_t flags; // enum wl_output_mode
int32_t width, height;
int32_t refresh; // mHz
};
2017-05-07 18:26:48 +02:00
struct wlr_output_impl;
struct wlr_output_state;
struct wlr_output {
const struct wlr_output_impl *impl;
struct wlr_output_state *state;
uint32_t flags;
2017-05-07 18:26:48 +02:00
char *name;
char *make;
char *model;
uint32_t scale;
2017-04-26 01:19:21 +02:00
int32_t x, y;
int32_t phys_width, phys_height; // mm
int32_t subpixel; // enum wl_output_subpixel
int32_t transform; // enum wl_output_transform
2017-05-07 18:26:48 +02:00
list_t *modes;
struct wlr_output_mode *current_mode;
2017-05-07 18:26:48 +02:00
struct {
struct wl_signal frame;
} events;
};
2017-05-07 18:26:48 +02:00
bool wlr_output_set_mode(struct wlr_output *output, struct wlr_output_mode *mode);
#endif