Commit graph

843 commits

Author SHA1 Message Date
a3cda92f4c Add bold font support in ui::label 2022-03-12 17:50:33 +03:00
9e9fd738b7 Add ui::style::bold_font 2022-03-12 17:50:19 +03:00
ab6da3b212 Add 10x12 bold font 2022-03-12 17:50:07 +03:00
d14763792d Add 10x12 bold font atlas 2022-03-12 17:49:27 +03:00
4d34de81b1 Fix table resize 2022-03-12 02:02:05 +03:00
9942ab60a9 Fix ui::grid_layout size computation 2022-03-12 01:48:36 +03:00
4c726e2eef Add ui::table base class 2022-03-12 01:16:18 +03:00
de352705f4 Cache computed row & column shapes in grid_layout 2022-03-12 01:16:01 +03:00
884a7c745b Optimize ui painter to not draw elements not in the current bbox 2022-03-11 14:51:49 +03:00
e237959894 Add ui::element::style_updated & own_style_updated replacing set_style(style()) 2022-03-11 13:11:47 +03:00
4922877431 Don't update ui style elements list when updating to the same style 2022-03-11 00:48:10 +03:00
4dcac2a5ac Make ui styles update elements on change 2022-03-10 17:36:17 +03:00
83df1a82ef Add ui::spawn helper for creating dropdown lists 2022-03-10 12:23:23 +03:00
e83fef3369 Add ui::positioner element that helps with positioning a child on screen 2022-03-10 12:22:33 +03:00
976b493e2b Fix ui::selector handling mouse click event 2022-03-10 12:21:51 +03:00
e630316a05 Add ui::single_container for wrapper elements 2022-03-10 12:21:17 +03:00
4a6d3a9d88 Add ui helper for sending fake mouse move events to force mouseover status 2022-03-10 12:19:57 +03:00
73d05a5ec4 Add ui helpers for finding a specific element type in element tree 2022-03-10 12:19:26 +03:00
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
123783c80a Support creating an app with fixed resolution & add a list of common resolutions 2022-03-02 13:55:42 +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
50b75bdd27 Make blur effect alpha-aware 2022-02-26 14:33:26 +03:00
3f758e845d Add 3d mono audio effect 2022-02-25 18:52:00 +03:00
c4ead52fd6 Rename audio::convert to audio::pack and add audio::unpack 2022-02-25 18:49:47 +03:00
47231dfd92 Mark util::not_implemented as noreturn 2022-02-25 18:49:27 +03:00
df2003cbf6 Support locking audio via audio::engine 2022-02-25 14:53:12 +03:00
0fa0cbbc09 Support audio::stream on_stop callback 2022-02-25 14:52:48 +03:00
425d41eae4 Remove hardcoded value of 128 in favor of MIX_MAX_VOLUME macro in audio::engine 2022-02-25 14:52:17 +03:00
13b47877ce Revert adding cell borders in default font 2022-02-23 14:12:32 +03:00
4403266feb Add util::cast<T>(span) 2022-02-22 23:02:43 +03:00
3485e9ff21 Add util dependency on boost 2022-02-21 22:57:38 +03:00
b4584f758d Add segment-sphere intersection 2022-02-21 13:05:35 +03:00
7a14ee82e6 Fix geom::intersect 2022-02-21 13:05:26 +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