Move menu and rendering logic into separate files

This commit is contained in:
adnano 2024-02-27 11:23:12 -05:00
parent 1104e8e51b
commit e8782db9c8
10 changed files with 1024 additions and 963 deletions

View file

@ -1,4 +1,7 @@
/* Taken from sway. MIT licensed */
#ifndef WMENU_POOL_BUFFER_H
#define WMENU_POOL_BUFFER_H
#include <cairo.h>
#include <pango/pangocairo.h>
#include <stdbool.h>
@ -19,3 +22,5 @@ struct pool_buffer {
struct pool_buffer *get_next_buffer(struct wl_shm *shm,
struct pool_buffer pool[static 2], int32_t width, int32_t height, int32_t scale);
void destroy_buffer(struct pool_buffer *buffer);
#endif