#ifndef COMET_DRAW_H #define COMET_DRAW_H #include #include #include "window.h" typedef struct Drawable Drawable; struct Drawable { int height; int left_pad; int right_pad; int top_pad; double alpha; GList *layouts; PangoFontDescription *desc; }; Drawable *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad, double alpha); void draw_compute_layout(Drawable *draw, GList *btns, cairo_t *cr); void draw_paint(Drawable *draw, Window *win); void draw_destroy(Drawable *draw); #endif // vim: ts=4 sw=4 et