You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
992 B
47 lines
992 B
8 years ago
|
#ifndef _WLR_WAYLAND_H
|
||
|
#define _WLR_WAYLAND_H
|
||
|
|
||
|
#include <wayland-server.h>
|
||
|
#include <wlr/common/list.h>
|
||
8 years ago
|
#include <stdbool.h>
|
||
8 years ago
|
|
||
8 years ago
|
struct wlr_output_mode_state;
|
||
8 years ago
|
|
||
8 years ago
|
struct wlr_output_mode {
|
||
|
struct wlr_output_mode_state *state;
|
||
8 years ago
|
uint32_t flags; // enum wl_output_mode
|
||
|
int32_t width, height;
|
||
|
int32_t refresh; // mHz
|
||
|
};
|
||
|
|
||
8 years ago
|
struct wlr_output_impl;
|
||
|
struct wlr_output_state;
|
||
|
|
||
|
struct wlr_output {
|
||
|
const struct wlr_output_impl *impl;
|
||
|
struct wlr_output_state *state;
|
||
|
|
||
8 years ago
|
uint32_t flags;
|
||
8 years ago
|
char *name;
|
||
8 years ago
|
char *make;
|
||
|
char *model;
|
||
8 years ago
|
uint32_t scale;
|
||
8 years ago
|
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
|
||
8 years ago
|
|
||
8 years ago
|
list_t *modes;
|
||
|
struct wlr_output_mode *current_mode;
|
||
8 years ago
|
|
||
8 years ago
|
struct {
|
||
|
struct wl_signal frame;
|
||
|
} events;
|
||
8 years ago
|
};
|
||
|
|
||
8 years ago
|
bool wlr_output_set_mode(struct wlr_output *output, struct wlr_output_mode *mode);
|
||
8 years ago
|
void wlr_output_enable(struct wlr_output *output, bool enable);
|
||
8 years ago
|
void wlr_output_destroy(struct wlr_output *output);
|
||
8 years ago
|
|
||
|
#endif
|