diff options
Diffstat (limited to 'src/draw.h')
| -rw-r--r-- | src/draw.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/draw.h b/src/draw.h new file mode 100644 index 0000000..3e83146 --- /dev/null +++ b/src/draw.h @@ -0,0 +1,28 @@ +#ifndef COMET_DRAW_H +#define COMET_DRAW_H + +#include <pango/pango-font.h> +#include <pango/pango-types.h> + +#include "window.h" + +typedef struct Drawable Drawable; + +struct Drawable { + PangoFontDescription *desc; + int height; + int left_pad; + int right_pad; + int top_pad; + double alpha; +}; + +Drawable *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad, double alpha); + +void draw_paint(Drawable *draw, Window *win); + +void draw_destroy(Drawable *draw); + +#endif + +// vim: ts=4 sw=4 et |
