better to_rgba() macro
This commit is contained in:
parent
78e2c64da6
commit
9aa0d58d68
6 changed files with 45 additions and 25 deletions
|
|
@ -21,8 +21,8 @@ fn ElemEvents! Ctx.slider_hor(&ctx,
|
|||
Rect size,
|
||||
float* value,
|
||||
float hpercent = 0.25,
|
||||
Color bgcolor = uint_to_rgba(0x0000ffff),
|
||||
Color handlecolor = uint_to_rgba(0x0ff000ff))
|
||||
Color bgcolor = 0x0000ffffu.to_rgba(),
|
||||
Color handlecolor = 0x0ff000ffu.to_rgba())
|
||||
{
|
||||
Id id = ctx.gen_id(label)!;
|
||||
|
||||
|
|
@ -84,8 +84,8 @@ fn ElemEvents! Ctx.slider_ver(&ctx,
|
|||
Rect size,
|
||||
float* value,
|
||||
float hpercent = 0.25,
|
||||
Color bgcolor = uint_to_rgba(0x0000ffff),
|
||||
Color handlecolor = uint_to_rgba(0x0ff000ff))
|
||||
Color bgcolor = 0x0000ffffu.to_rgba(),
|
||||
Color handlecolor = 0x0ff000ffu.to_rgba())
|
||||
{
|
||||
Id id = ctx.gen_id(label)!;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue