Commit graph

302 commits

Author SHA1 Message Date
932e64a991 Fix default ui::button child & size constraints handling 2022-12-20 17:11:54 +03:00
5bf544d032 Add generic ui::spawn 2022-12-20 17:11:23 +03:00
183e5bb482 Rename ui::spawn -> ui::spawn_selector 2022-12-20 17:11:14 +03:00
79eceaa616 Fix selectors lifetime issues 2022-12-19 21:17:22 +03:00
6fe5d72415 Fix ui::grid_layout::set_size element parenting 2022-12-19 20:35:12 +03:00
cf13025cc6 Support update callback in ui::event_interceptor 2022-12-19 12:29:22 +03:00
c1699fe882 Add default image provider 2022-12-19 09:52:02 +03:00
852a170c97 Add default ui::edit implementation 2022-12-18 21:55:30 +03:00
9ab72a7c1a Fix default ui::window impl event handling 2022-12-18 21:55:23 +03:00
1c9fb28ebf Implement shadows in default selector impl 2022-12-18 19:22:55 +03:00
f42b91a80e Another selector callback fix 2022-12-18 19:15:24 +03:00
e28b7a8e67 Fix rapidjson dependence 2022-12-18 18:35:13 +03:00
a1307b84b9 Support changing ui::default_element_factory close icon 2022-12-18 18:17:40 +03:00
3a93ddce65 Fix selector callback patching 2022-12-18 18:17:00 +03:00
d5fdb2a7c5 Support changing ui::label text_style without tagged text 2022-12-18 18:15:14 +03:00
3d2c03c1b4 Implement default ui::selector 2022-12-18 16:42:39 +03:00
83cb71d2c0 Implement width/height_constraints for default ui::frame implementation 2022-12-18 16:42:27 +03:00
83559aba51 Fix ui::label line height calculation 2022-12-18 16:41:59 +03:00
a7d331544c Implement ui::event_interceptor::width/height_constraints 2022-12-18 16:41:44 +03:00
b00e59ab08 Add rapidjson, msdf & bitmap fonts support and bmfont parser 2022-12-18 14:43:57 +03:00
5f7da5ddc5 Fix label tagged text error reporting 2022-12-16 16:28:24 +03:00
11e46ba1c6 Support retrieving caption label from ui::window 2022-12-08 17:53:55 +03:00
65d95d9b5a Make ui::edit::numeric validators accept max value length 2022-05-30 22:13:28 +03:00
60150151df Fix ui::label stretch for lines in the middle of text ending in newline 2022-05-29 23:00:44 +03:00
6e289b3b90 Support arbitrary post-draw effect in ui::controller 2022-05-29 19:27:28 +03:00
14d7dda788 Fix ui::scroller size constraints 2022-05-29 11:59:30 +03:00
ccfe940448 Fix positioning ui::label lines 2022-05-29 11:46:23 +03:00
b167e06898 Support user-supplied tag mapper in ui::label 2022-05-28 20:09:17 +03:00
2a2a97f0f8 Refactor ui::tagged_text to use allocated strings instead of string_views 2022-05-28 20:08:57 +03:00
b9a5861e85 Make ui::find_element_by_id traverse children in reverse order 2022-05-28 15:52:13 +03:00
a567cbbbf5 Support moving ui::screen child to top 2022-05-27 19:59:03 +03:00
203d0504ac Fix text wrapping in ui::label 2022-05-26 23:56:09 +03:00
2574b7aa2b Make ui::screen use new size constrains api 2022-05-26 23:54:15 +03:00
21ae912271 Add ui::find_element_by_id 2022-05-25 22:55:25 +03:00
924533fc7f Add ui::element::id 2022-05-25 22:55:12 +03:00
ebdd90c520 Add ui::painter::draw_triangle with per-vertex colors 2022-05-25 22:53:20 +03:00
fd8bec44ab Compute & log max primitive count in ui painter 2022-05-25 22:52:53 +03:00
c949e0fad9 Discard fragments with alpha=0 in ui painter 2022-05-25 22:51:53 +03:00
b1d9c2c08d Support creating labels with tagged text in ui::element_factory 2022-05-25 13:18:07 +03:00
91fcdfcb29 Fix transparent text shadow rendering 2022-05-24 09:47:30 +03:00
1f0854fff6 Fix ui::edit text rendering 2022-05-23 22:18:32 +03:00
44d74b5bd8 Fix ui::label wrapping 2022-05-23 20:49:37 +03:00
d5baea48dd Fix handling empty lines at the end of ui::label 2022-05-23 20:49:23 +03:00
945b126e64 Post mouseover callback when ui::selector is removed from it's parent 2022-05-23 20:41:43 +03:00
e05a28463d Fix reshape caching 2022-05-23 20:32:49 +03:00
1af6f26e80 Simplify reshaping logic 2022-05-23 20:07:40 +03:00
dd87dadd2f Call post_reshape when adding children to ui::single_container & ui::selector 2022-05-23 20:07:25 +03:00
284df5d92c Switch to hand cursor when clicking ui::label links 2022-05-22 19:35:41 +03:00
f0cf916b85 Implement ui::label link tag 2022-05-22 19:28:14 +03:00
9300dc6779 Support color tag in ui::label 2022-05-22 11:16:01 +03:00