aboutsummaryrefslogtreecommitdiffstats
path: root/widget.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-04-30 11:37:49 -0400
committerSam Anthony <sam@samanthony.xyz>2025-04-30 11:37:49 -0400
commit5ac5c25c299b3c1d390c68c3d04ae979e787def0 (patch)
treebf0a222e5075be9ead50c05f942768b484435572 /widget.h
parent550dee49514fe3528c43541f062c1ae5590313ae (diff)
downloadvolute-5ac5c25c299b3c1d390c68c3d04ae979e787def0.zip
canvas widget
Diffstat (limited to 'widget.h')
-rw-r--r--widget.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/widget.h b/widget.h
index ab30f7a..e9ee3d5 100644
--- a/widget.h
+++ b/widget.h
@@ -74,3 +74,11 @@ void w_init_image(w_Image *img);
void w_free_image(w_Image *img);
int w_set_image(w_Image *img, const char *path);
void w_image(mu_Context *ctx, w_Image *img);
+
+
+typedef struct {
+ int id; /* renderer canvas id. */
+} w_Canvas;
+
+int w_init_canvas(w_Canvas *c, const char *bg_img_path);
+void w_free_canvas(w_Canvas *c);