track focused and hovered elements
This commit is contained in:
parent
4bd827ce5c
commit
f7985f8c7f
6 changed files with 58 additions and 56 deletions
|
|
@ -122,7 +122,7 @@ fn int main(String[] args)
|
|||
ui.div_begin("main", ugui::Rect{.w=ui.width/2})!!;
|
||||
{|
|
||||
|
||||
ui.layout_set_row()!!;
|
||||
ui.layout_set_column()!!;
|
||||
if (ui.button("button0", ugui::Rect{0,0,30,30}, toggle)!!.mouse_press) {
|
||||
io::printn("press button0");
|
||||
toggle = !toggle;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue