37 lines
693 B
C
37 lines
693 B
C
#ifndef STATE_H
|
|
#define STATE_H
|
|
|
|
#include "common.h"
|
|
|
|
struct user_request {
|
|
char *graphics_filename;
|
|
char *text;
|
|
char *font;
|
|
struct color_argb backdrop;
|
|
struct color_argb text_color;
|
|
int border_radius;
|
|
int width;
|
|
int height;
|
|
int padding;
|
|
};
|
|
|
|
struct wayland_state {
|
|
/* Globals */
|
|
struct wl_registry *wl_registry;
|
|
struct wl_display *wl_display;
|
|
struct wl_shm *wl_shm;
|
|
struct wl_compositor *wl_compositor;
|
|
struct zwlr_layer_shell_v1 *layer_shell;
|
|
|
|
struct wl_seat *wl_seat;
|
|
/* Objects */
|
|
struct wl_surface *wl_surface;
|
|
struct zwlr_layer_surface_v1 *zwlr_surface;
|
|
};
|
|
|
|
struct client_state {
|
|
struct user_request user_request;
|
|
struct wayland_state wl_state;
|
|
};
|
|
|
|
#endif // STATE_H
|