32 lines
622 B
C
32 lines
622 B
C
#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
|