aboutsummaryrefslogtreecommitdiffstats
path: root/widget.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-04-30 11:49:51 -0400
committerSam Anthony <sam@samanthony.xyz>2025-04-30 11:49:51 -0400
commit48073692989863cef977c2eef6677d866e46fc0d (patch)
tree6a40828b6f13f734ea67d166b442b9b7df5470a8 /widget.h
parent5ac5c25c299b3c1d390c68c3d04ae979e787def0 (diff)
downloadvolute-48073692989863cef977c2eef6677d866e46fc0d.zip
draw canvas widget
Diffstat (limited to 'widget.h')
-rw-r--r--widget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/widget.h b/widget.h
index e9ee3d5..f46bae9 100644
--- a/widget.h
+++ b/widget.h
@@ -78,7 +78,10 @@ void w_image(mu_Context *ctx, w_Image *img);
typedef struct {
int id; /* renderer canvas id. */
+ int dirty; /* the canvas must be re-rendered. */
+ int icon_id; /* renderer icon id. Only valid if !dirty. */
} w_Canvas;
int w_init_canvas(w_Canvas *c, const char *bg_img_path);
void w_free_canvas(w_Canvas *c);
+int w_canvas(mu_Context *ctx, w_Canvas *canvas);