diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-04-30 11:37:49 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-04-30 11:37:49 -0400 |
| commit | 5ac5c25c299b3c1d390c68c3d04ae979e787def0 (patch) | |
| tree | bf0a222e5075be9ead50c05f942768b484435572 /widget.h | |
| parent | 550dee49514fe3528c43541f062c1ae5590313ae (diff) | |
| download | volute-5ac5c25c299b3c1d390c68c3d04ae979e787def0.zip | |
canvas widget
Diffstat (limited to 'widget.h')
| -rw-r--r-- | widget.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |