From f8363e89257e8b0a4ff71accbd7b6be22935274f Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 17 Nov 2023 15:07:14 +0100 Subject: Attach state to the event loop --- draw.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'draw.h') 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); -- cgit v1.2.3