Commit graph

206 commits

Author SHA1 Message Date
183e5bb482 Rename ui::spawn -> ui::spawn_selector 2022-12-20 17:11:14 +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
a1307b84b9 Support changing ui::default_element_factory close icon 2022-12-18 18:17:40 +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
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
11e46ba1c6 Support retrieving caption label from ui::window 2022-12-08 17:53:55 +03:00
9edf94be0c Clang compilation fixes 2022-06-11 13:58:54 +03:00
65d95d9b5a Make ui::edit::numeric validators accept max value length 2022-05-30 22:13:28 +03:00
6e289b3b90 Support arbitrary post-draw effect in ui::controller 2022-05-29 19:27:28 +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
a567cbbbf5 Support moving ui::screen child to top 2022-05-27 19:59:03 +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
78c573b091 Rearrange ui::element field for less padding 2022-05-25 16:16:18 +03:00
b1d9c2c08d Support creating labels with tagged text in ui::element_factory 2022-05-25 13:18:07 +03:00
945b126e64 Post mouseover callback when ui::selector is removed from it's parent 2022-05-23 20:41:43 +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
e7a1d1b265 Add ui::image_provider interface 2022-05-22 11:15:15 +03:00
183f5283e2 ui::label tagged text support: implement color tag 2022-05-21 21:45:23 +03:00
d40dd82268 ui::label tags support: bold, uline & strike 2022-05-21 20:23:50 +03:00
057cf1c4c7 ui::label tagged text support wip: refactor internal data & shaping algorithm 2022-05-21 19:53:01 +03:00
98b8a324d0 Support setting initial pen position & retrieving final pen position in font text shaping 2022-05-21 19:51:07 +03:00
a9de6232de Implement underline & strikethrough in ui::label 2022-05-20 17:05:51 +03:00
b9b3e7577b Add strikethrough text option 2022-05-20 17:05:01 +03:00
bedb8c9faf Remove label font_type setting & move it to style 2022-05-19 21:33:48 +03:00
b524600da0 Add tagged_text description, parser & tests 2022-05-19 17:27:58 +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
395464ebd5 Remove draw_glyph using in ui::edit, cache raw images instead 2022-05-19 12:06:04 +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
77d3e6e3f2 Remove duplicated image draw API in ui::painter 2022-05-19 10:41:01 +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
59de6682ba Support retrieving buttons from spinbox 2022-05-17 23:16:26 +03:00
3f9275b2ad Remove toggle_button, make checkbox support children by default 2022-05-17 22:03:40 +03:00
bfb8ba407b Remove rich_button, make any button able to contain a child element 2022-05-17 21:25:01 +03:00
0f95a5bcee Make progress_bar::label const 2022-05-17 21:01:20 +03:00
16036268f5 Make convenient function in ui::element_factory to create a progress bar with a label 2022-05-17 20:24:58 +03:00
c706032df5 Make ui::progress_bar capable of having any element as a child 2022-05-17 20:24:39 +03:00
a56cdcfc73 Make ui::single_container::child const 2022-05-16 12:10:39 +03:00
62cfba7711 Add ui::frame::width/height_constraints 2022-05-16 12:10:21 +03:00
9a2c562eec Add ui::asymmetric element that supports width_first() reshaping 2022-05-16 12:09:58 +03:00
0b3ef5f4f5 Allow storing arbitrary user data in ui::element 2022-05-15 15:40:55 +03:00