Commit graph

153 commits

Author SHA1 Message Date
f01feb7b7f Remove ui::edit::own_style_updated override 2022-05-14 16:04:50 +03:00
922daee6d2 Support whole-word deletion in ui::edit 2022-05-10 12:01:33 +03:00
9a56228231 Support on_text_changed callback in ui::edit 2022-05-08 11:56:45 +03:00
a368eb32ff Support selector canceled callback in ui::spawn 2022-05-03 20:14:14 +03:00
fe1769cf46 Support retrieving item bboxes in ui::selector 2022-05-03 15:43:55 +03:00
8354ee1753 Support mouseover callback in ui::selector 2022-05-03 15:43:37 +03:00
b5145b9596 Support on_scroll event in ui::scroller 2022-05-03 14:24:14 +03:00
3760741ba6 Refactor ui::selector to support selector hierarchies 2022-05-01 13:16:48 +03:00
26ca210ecf Make ui::selector callback retrievable so that ui::spawn can replace it 2022-04-30 20:42:45 +03:00
1cdfcc5aa5 Support a separate callback for ui::selector submenu selection 2022-04-30 20:31:34 +03:00
a6b89e3d54 Make ui::spawn(selector) accept floating-point position directly 2022-04-30 18:34:19 +03:00
55d2a48ff2 Support retrieving item y-range from ui::selector 2022-04-30 16:52:23 +03:00
cc6691c633 Support submenu options in ui::selector 2022-04-30 16:47:54 +03:00
727db57092 Mark certain ui elements as transparent only if they don't have a hint 2022-04-29 14:53:35 +03:00
05f777f398 Make ui:🏷️:font_type an enum class 2022-04-29 11:12:48 +03:00
cabe5721aa Add ui::element::transparent attribute 2022-04-20 18:46:30 +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
edccbc3ed5 Support ui::edit callback on start text input 2022-04-10 15:12:42 +03:00
b9187c6b75 Compute proper caret position after clicking on ui::edit 2022-04-08 15:06:52 +03:00
26631cd564 Support cancelling editing text in ui::edit 2022-04-08 15:00:00 +03:00
e445b42724 Refactor ui::edit state & support focusing 2022-04-08 14:49:44 +03:00
bd6d0f9f93 Support focused ui elements 2022-04-08 14:49:09 +03:00
5066dd6494 Support a separate text bbox in ui::edit 2022-04-08 12:36:23 +03:00
f7568535b6 Add ui::edit text input element 2022-04-01 17:43:35 +03:00
7848d5a8b3 Add text input helpers in ui::element 2022-04-01 17:43:12 +03:00
ccb5570892 Add ui::text_input event 2022-04-01 17:42:42 +03:00
11b3e960d5 Support shaping utf32-text directly in ui::font 2022-04-01 17:38:39 +03:00
2b027e09e5 Support ui::positioner clamping the positioned element within provided shape 2022-03-31 20:15:37 +03:00
b6ddd70989 Implement ui element hinting support 2022-03-29 18:14:43 +03:00
682bbb8e90 Support non-notifying ui::spinbox::on_value_changed 2022-03-29 10:13:22 +03:00
b3d770f019 Make ui::frame a non-abstract class 2022-03-17 15:24:06 +03:00
e8a5ecfa3b Support ui::button repeating callback when kept pressed 2022-03-15 18:15:50 +03:00
35c26f1167 Support retrieving display label from a spinbox 2022-03-15 16:56:53 +03:00
64a8255c8c Support non-notifying ui::spinbox::set_value 2022-03-15 16:56:34 +03:00
56bade1b6b Add ui::table default constructor 2022-03-14 23:29:13 +03:00
d1c95ea142 Add ui::selector::clear 2022-03-13 17:20:50 +03:00
65a924dc69 Add ui::container_impl::clear 2022-03-13 17:20:34 +03:00
6c4c0d8305 Make ui::selector release children on destroy 2022-03-13 17:20:20 +03:00
11b904c890 Make ui::single_container release children on destroy 2022-03-13 17:20:02 +03:00
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
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
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
e630316a05 Add ui::single_container for wrapper elements 2022-03-10 12:21:17 +03:00