vertical slider
This commit is contained in:
parent
28598f0575
commit
1cad13e597
3 changed files with 84 additions and 6 deletions
|
|
@ -65,7 +65,7 @@ fn int main(String[] args)
|
|||
if (ctx.button("button2", ugui::Rect{0,0,30,30})!!.mouse_release) {
|
||||
io::printn("release button2");
|
||||
}
|
||||
if (ctx.slider_hor("slider", ugui::Rect{0,0,100,30})!!.update) {
|
||||
if (ctx.slider_ver("slider", ugui::Rect{0,0,30,100})!!.update) {
|
||||
ugui::Elem* e = ctx.get_elem_by_label("slider")!!;
|
||||
io::printfn("slider: %f", e.slider.value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue