Commit graph

16 commits

Author SHA1 Message Date
884a7c745b Optimize ui painter to not draw elements not in the current bbox 2022-03-11 14:51:49 +03:00
d577282fce Make ui controller root_proxy post on_reshape instead of calling it directly 2022-02-05 12:38:35 +03:00
015307cbec Support ui::element::post_draw invoked after children draw 2021-10-15 21:37:13 +03:00
5e62e6fa26 Add missing override specifications 2021-05-28 11:32:21 +03:00
f40d98cb2f UI rendering fix: visit the tree first, setup OpenGL next 2021-03-06 18:30:15 +03:00
03acb43dc4 Don't draw or send events to hidden ui children 2021-03-06 10:56:38 +03:00
e6506062b0 UI: send events to children in reverse order 2021-03-06 10:56:22 +03:00
2b2b2be560 Support ui animations 2021-03-05 20:09:02 +03:00
5dda61ab50 UI: use async::event_loop instead of abstract async::executor 2021-03-03 13:03:32 +03:00
5e6d52f341 Add (unused) ui key press event 2021-03-03 12:15:52 +03:00
87d5edc386 Add root element proxy in ui::controller to resend mouse events on reshape 2021-02-26 23:15:23 +03:00
90782d479a Disable face culling while rendering ui 2021-02-25 21:03:05 +03:00
ec422cf48d Make ui::contoller accept an external event loop 2021-02-25 15:00:27 +03:00
d42e1b1bcb Use shared_ptr instead of unique_ptr for ui elements 2021-02-25 14:42:35 +03:00
937a011577 Don't store font in painter or controller, use it in factory instead 2021-02-25 09:50:30 +03:00
a53b32067f UI library prototype wip 2021-02-25 09:07:39 +03:00