Commit graph

147 commits

Author SHA1 Message Date
b215d52289 Reset ui::label cached state on style change 2022-03-09 19:55:43 +03:00
6412238e19 Make ui::style::inner_margin a 2D vector 2022-03-09 19:25:56 +03:00
f139b1ca1f Don't include all ui elements in element_factory.hpp, forward declare them instead 2022-03-09 16:44:43 +03:00
a8f51e93ac Add ui::selector (dropdown list component) 2022-03-08 13:02:39 +03:00
e3ab6d42b6 Add ui::container_impl::empty and resize 2022-03-08 13:02:18 +03:00
390df41f30 Add ui::progress_bar 2022-03-07 21:47:27 +03:00
ad53fdd7a4 Support ui::scroller preferred direction 2022-03-07 01:13:13 +03:00
75e6db45f1 Redesign resources system: centralized id-based resource registry 2022-03-07 00:05:40 +03:00
2c0001be28 Make slider stick to max shift 2022-03-04 14:08:18 +03:00
343a0aed78 Fix scroller handling mouse click 2022-03-03 17:33:53 +03:00
e06549f4dc Fix label stretch with lines ending in newline 2022-03-02 23:02:39 +03:00
22c270ff6f Add container_impl::size 2022-03-02 20:22:52 +03:00
223ce10e0f Make ui::event_interceptor only intercept mouse events when mouseover 2022-03-01 14:18:38 +03:00
fd0048c423 Fix grid_layout remembering bounding box 2022-03-01 14:18:12 +03:00
98ab4ee39d Fix element reshape caching 2022-03-01 14:17:56 +03:00
512e9b51b7 Cache inf cached state for labels 2022-02-27 19:40:18 +03:00
5d116ad79a Change ui::key_interceptor to generic ui::event_interceptor 2022-02-27 12:15:48 +03:00
d233955a10 Finish scroller implementation: add scroll bars & scroll clamping 2022-02-20 13:51:19 +03:00
343894d06b Add non-notifying versions of slider methods 2022-02-19 23:04:36 +03:00
466aa717ad Log max batch count in ui painter 2022-02-19 19:40:19 +03:00
742ae9e21e Fix propagating reshape_posted flag 2022-02-19 19:23:20 +03:00
aca553c566 Propagate reshape_posted to and from parents 2022-02-19 16:39:43 +03:00
2004f8043a Don't post ui reshape if one if already posted 2022-02-19 16:36:17 +03:00
4281093b9d Add ui::key_interceptor 2022-02-19 13:00:39 +03:00
ecf69a85e6 Add ui::null_shape 2022-02-19 13:00:31 +03:00
b4c19a2ca7 Make image_view respect style scale 2022-02-18 11:51:37 +03:00
5a64593219 Introduce ui::toggle_button - a button that can be turned on/off 2022-02-17 18:55:00 +03:00
eb78e2cdb7 Make image_view use texture_view instead of owning a texture 2022-02-17 18:54:14 +03:00
9e24c875a1 Support drawing rotating images in ui::painter 2022-02-17 10:17:55 +03:00
59a0b4ef13 Fix kerned_font handling spaces 2022-02-16 11:33:14 +03:00
a52ea77e69 Support stretching spaces in ui::label 2022-02-15 17:12:46 +03:00
0be73e2816 Replace ui:🏷️:multiline_mode with boolean ui:🏷️:wrap 2022-02-15 16:55:18 +03:00
34e2877873 Add new non-monospace font 2022-02-15 16:24:42 +03:00
615fc029e7 Add ui::style::scale 2022-02-15 11:23:14 +03:00
93fd269c02 Support rendering texture_view's in ui::painter 2022-02-10 13:29:37 +03:00
fa581d0ed3 Make ui::grid_layout::get return shared_ptr 2022-02-07 21:13:41 +03:00
66deca8cda Fix ui::checkbox::set_value 2022-02-07 13:39:40 +03:00
093308a116 Fix ui painter colored texture rendering 2022-02-06 14:47:43 +03:00
681bc5cc25 Fix ui frame_impl size constraints 2022-02-05 20:44:17 +03:00
5779680e1d Fix ui::slider behavior if reshape occurs while user is changing value 2022-02-05 12:43:21 +03:00
d577282fce Make ui controller root_proxy post on_reshape instead of calling it directly 2022-02-05 12:38:35 +03:00
a01bd019f8 Support delaying posted callbacks until a ui element gets attached to an event loop 2022-02-02 22:05:40 +03:00
e4bd58c5ef Support not skipping extra spaces in ui::label 2022-02-02 19:45:32 +03:00
3b70089b1f Fix button mouseover handling 2021-10-15 22:31:56 +03:00
b4f116cada Implement scroller ui container 2021-10-15 21:38:23 +03:00
b298859f1e Support stencils in ui::painter 2021-10-15 21:37:48 +03:00
015307cbec Support ui::element::post_draw invoked after children draw 2021-10-15 21:37:13 +03:00
513105d3ee Move make_arrow_button to element_factory interface 2021-10-14 21:49:54 +03:00
3ec4d1ed90 Move ui::painter_impl internals to anonymous namespace 2021-10-14 21:48:03 +03:00
3a5e29835f Implement bevels in default_element_factory frame 2021-10-13 23:16:25 +03:00