diff options
author | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2020-09-24 18:01:28 +0200 |
---|---|---|
committer | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2020-09-24 18:01:28 +0200 |
commit | 9ff4f4959b8d78104fa4defb3c4cea9606e3c484 (patch) | |
tree | ac80aef7e1caff0d0af491ea4816ca63706a8116 /src/surface.h | |
download | wlclock-9ff4f4959b8d78104fa4defb3c4cea9606e3c484.tar.gz wlclock-9ff4f4959b8d78104fa4defb3c4cea9606e3c484.tar.bz2 |
Init
Diffstat (limited to 'src/surface.h')
-rw-r--r-- | src/surface.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/surface.h b/src/surface.h new file mode 100644 index 0000000..8fd99bc --- /dev/null +++ b/src/surface.h @@ -0,0 +1,31 @@ +#ifndef WLCLOCK_SURFACE_H +#define WLCLOCK_SURFACE_H + +#include<wayland-server.h> + +#include"buffer.h" + +#include<stdint.h> +#include<stdbool.h> + +struct Wlclock; +struct Wlclock_output; + +struct Wlclock_surface +{ + struct Wlclock_output *output; + struct wl_surface *surface; + struct zwlr_layer_surface_v1 *layer_surface; + + int32_t size; + struct Wlclock_buffer buffers[2]; + bool configured; +}; + +bool create_surface (struct Wlclock_output *output); +void destroy_surface (struct Wlclock_surface *surface); +void destroy_all_surfaces (struct Wlclock *clock); +void update_surface (struct Wlclock_surface *surface); +void update_all_surfaces (struct Wlclock *clock); + +#endif |