summaryrefslogtreecommitdiff
path: root/src/surface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/surface.h')
-rw-r--r--src/surface.h31
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