toaruos/userspace/lib/decorations.h
2012-03-14 15:04:12 -05:00

36 lines
711 B
C

/* vim: tabstop=4 shiftwidth=4 noexpandtab
*
* Decoration Library Headers
*
*/
#ifndef DECORATIONS_H
#define DECORATIONS_H
#include "graphics.h"
#include "window.h"
uint32_t decor_top_height;
uint32_t decor_bottom_height;
uint32_t decor_left_width;
uint32_t decor_right_width;
/*
* Render decorations to a window. A buffer pointer is
* provided so that you may render in double-buffered mode.
*
* Run me at least once for each window, and any time you may need to
* redraw them.
*/
void render_decorations(window_t * window, uint8_t * ctx, char * title);
/*
* Run me once to set things up
*/
void init_decorations();
uint32_t decor_width();
uint32_t decor_height();
#endif /* DECORATION_H */