aboutsummaryrefslogtreecommitdiff
path: root/draw.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2023-11-17 15:07:14 +0100
committerFederico Angelilli <code@fedang.net>2023-11-17 15:07:14 +0100
commitf8363e89257e8b0a4ff71accbd7b6be22935274f (patch)
tree62e6b17d11b174f6683bf090ed678dddd7a263d4 /draw.h
parent41729222431449a81535b28ad27ce2620cb5819b (diff)
Attach state to the event loop
Diffstat (limited to 'draw.h')
-rw-r--r--draw.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/draw.h b/draw.h
index 2bbb3c2..3e83146 100644
--- a/draw.h
+++ b/draw.h
@@ -6,15 +6,16 @@
#include "window.h"
-// TODO: Make opaque
-typedef struct {
+typedef struct Drawable Drawable;
+
+struct Drawable {
PangoFontDescription *desc;
int height;
int left_pad;
int right_pad;
int top_pad;
double alpha;
-} Drawable;
+};
Drawable *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad, double alpha);