Commit graph

51 commits

Author SHA1 Message Date
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
60150151df Fix ui::label stretch for lines in the middle of text ending in newline 2022-05-29 23:00:44 +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
203d0504ac Fix text wrapping in ui::label 2022-05-26 23:56:09 +03:00
91fcdfcb29 Fix transparent text shadow rendering 2022-05-24 09:47:30 +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
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
e51480db0a Support setting image_provider in ui::label 2022-05-22 11:15:52 +03:00
3f282356d7 Fix ui::label underline & strikethrough handling 2022-05-21 22:07:55 +03:00
183f5283e2 ui::label tagged text support: implement color tag 2022-05-21 21:45:23 +03:00
12733cf239 Remove obsolete code 2022-05-21 20:25:02 +03:00
d40dd82268 ui::label tags support: bold, uline & strike 2022-05-21 20:23:50 +03:00
711253bbfe Make sure ui::label shaping doesn't get stuck in infinite loop 2022-05-21 20:22:47 +03:00
057cf1c4c7 ui::label tagged text support wip: refactor internal data & shaping algorithm 2022-05-21 19:53:01 +03:00
a9de6232de Implement underline & strikethrough in ui::label 2022-05-20 17:05:51 +03:00
bedb8c9faf Remove label font_type setting & move it to style 2022-05-19 21:33:48 +03:00
43c18eb4d2 Remove ui::painter::draw_glyph, introduce ui::painter::color_mode used for switching between mix/multiply in draw_image 2022-05-19 12:15:16 +03:00
35eaf17a3b Refactor ui::painter interface: gather draw_image options into a struct 2022-05-19 11:38:09 +03:00
f21fa3c2d6 Store texcoords as float in texture_view 2022-05-19 11:23:42 +03:00
329915ac1b Rich text label wip: store cached label state as a series of batches of texture views (NB: transparent labels are broken) 2022-05-18 22:45:35 +03:00
49e3e2e07b Mark ui::element::style_updated/own_style_updated as const 2022-05-14 16:05:24 +03:00
6aebd8c931 Introduce ui::element::{width,height}_constraint - constraints on one dimension given the size in another dimension 2022-04-16 17:16:09 +03:00
a3cda92f4c Add bold font support in ui::label 2022-03-12 17:50:33 +03:00
e237959894 Add ui::element::style_updated & own_style_updated replacing set_style(style()) 2022-03-11 13:11:47 +03:00
b215d52289 Reset ui::label cached state on style change 2022-03-09 19:55:43 +03:00
e06549f4dc Fix label stretch with lines ending in newline 2022-03-02 23:02:39 +03:00
512e9b51b7 Cache inf cached state for labels 2022-02-27 19:40:18 +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
e4bd58c5ef Support not skipping extra spaces in ui::label 2022-02-02 19:45:32 +03:00
7499785c72 Support non-propagating styles in ui elements 2021-10-13 22:52:45 +03:00
a362dafee3 Add app::ui_scene helper base class 2021-03-03 12:24:45 +03:00
b37d2d25c7 Implement cached style merging 2021-02-27 20:21:50 +03:00
d0a117adf4 Make style members optional 2021-02-27 19:59:12 +03:00
d16a71012d Fix ui::label size constraints 2021-02-26 14:35:11 +03:00
2c39434f41 Support multiline strings in label 2021-02-26 12:20:01 +03:00
e754da5f46 Label breaks lines on space characters only 2021-02-26 11:50:34 +03:00
0de3b782dc Add text shadows 2021-02-26 11:36:32 +03:00
c9ec53952c Implement multiline modes in label 2021-02-26 11:34:32 +03:00
92a395c293 Support overflow modes in label 2021-02-25 21:25:25 +03:00
57473c545c Support all alignment modes in label 2021-02-25 21:09:41 +03:00
fd7fbd4d87 Label properties change triggers reshape 2021-02-25 15:15:42 +03:00
49c9e8c7cf Use glyph drawing in labels 2021-02-25 14:18:10 +03:00
69bd546848 Label implementation wip 2021-02-25 11:42:47 +03:00