add convenience function to draw a semi-transparent rectangle
This commit is contained in:
parent
6a7dd998a6
commit
a9642f28bd
1 changed files with 2 additions and 0 deletions
|
|
@ -177,3 +177,5 @@ fn void? Ctx.push_update_atlas(&ctx, Atlas* atlas)
|
|||
ctx.push_cmd(&up, -1)!;
|
||||
}
|
||||
|
||||
macro Ctx.dbg_rect(&ctx, Rect r, uint c = 0xff000042u) => ctx.push_rect(r, int.max, &&(Style){.bg=c.to_rgba()})!!;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue