initial commit 🤞

This commit is contained in:
betty
2025-12-27 20:47:41 -05:00
commit c06f9aeefe
8 changed files with 281 additions and 0 deletions

31
inc/screen.h Normal file
View File

@@ -0,0 +1,31 @@
#ifndef SCREEN_H
#define SCREEN_H
/*
#include <libpng.h>
#include <cairo/cairo.h>
#include <cairo/cairo-xcb.h>
#include <xcb/xcb.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
*/
#include "thing.h"
#include "put.h"
typedef struct screen screen_t;
// func decs
screen_t *screen_create(int width, int height);
void screen_destroy(screen_t *s);
void screen_add(screen_t *s, thing_t *t);
void screen_remove(screen_t *s, thing_t *t);
void screen_raise(screen_t *s, thing_t *t);
void screen_lower(screen_t *s, thing_t *t);
void screen_dispatch(screen_t *s, const put_event *ev);
void screen_redraw(screen_t *s);
#endif