toaruos/userspace/lib/decorations.h

37 lines
805 B
C
Raw Normal View History

2012-03-15 00:04:12 +04:00
/* 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, gfx_context_t * ctx, char * title);
void render_decorations_inactive(window_t * window, gfx_context_t * ctx, char * title);
2012-03-15 00:04:12 +04:00
/*
* Run me once to set things up
*/
void init_decorations();
uint32_t decor_width();
uint32_t decor_height();
#endif /* DECORATION_H */