Commit graph

25 commits

Author SHA1 Message Date
3f5735e10f Don't send mouse events to hidden scroller children 2023-01-05 18:35:39 +03:00
6e289b3b90 Support arbitrary post-draw effect in ui::controller 2022-05-29 19:27:28 +03:00
ecab744dfd Fix choosing hinted ui element if it is hidden by a non-transparent element 2022-04-20 18:47:09 +03:00
cabe5721aa Add ui::element::transparent attribute 2022-04-20 18:46:30 +03:00
32bb106467 Store focused & hinted elements via weak_ptr in ui::controller 2022-04-10 00:05:28 +03:00
bd6d0f9f93 Support focused ui elements 2022-04-08 14:49:09 +03:00
ccb5570892 Add ui::text_input event 2022-04-01 17:42:42 +03:00
02dbdccf0d Re-issue ui hint if hint string changed 2022-03-30 09:52:33 +03:00
b6ddd70989 Implement ui element hinting support 2022-03-29 18:14:43 +03:00
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