aboutsummaryrefslogtreecommitdiff
path: root/src/draw.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw.h')
-rw-r--r--src/draw.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/draw.h b/src/draw.h
index c9de967..6851e87 100644
--- a/src/draw.h
+++ b/src/draw.h
@@ -15,7 +15,7 @@ typedef struct {
typedef struct {
PangoFontDescription *desc;
- PangoContext *ctx;
+ PangoContext *context;
int height;
int width;
int left_pad;
@@ -41,17 +41,23 @@ typedef struct {
GList *children;
} Layout;
-Drawer *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad);
+Drawer *draw_create();
+
+void draw_paint(Drawer *draw, Window *win);
// TODO: Rework the api so that we don't need to pass the window
void draw_compute_layout(Drawer *draw, Window *win, GList *btns);
-void draw_paint(Drawer *draw, Window *win);
-
void draw_set_background(Drawer *draw, Color background);
void draw_set_separator(Drawer *draw, int sep);
+void draw_set_font(Drawer *draw, const char *font);
+
+void draw_set_context(Drawer *draw, PangoContext *context);
+
+void draw_set_size(Drawer *draw, int height, int left_pad, int right_pad, int top_pad);
+
void draw_destroy(Drawer *draw);
#endif