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