aboutsummaryrefslogtreecommitdiff
path: root/src/draw.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw.h')
-rw-r--r--src/draw.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/draw.h b/src/draw.h
index c4f88e6..9c46900 100644
--- a/src/draw.h
+++ b/src/draw.h
@@ -3,8 +3,10 @@
#include <glib.h>
#include <pango/pango-font.h>
+#include <pango/pangocairo.h>
#include "window.h"
+#include "button.h"
typedef struct Drawable Drawable;
@@ -18,6 +20,14 @@ struct Drawable {
PangoFontDescription *desc;
};
+typedef struct {
+ Button *btn;
+ int x, y;
+ int width, height;
+ int text_w, text_h;
+ PangoLayout *pl;
+} Layout;
+
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);