Commit graph

22 commits

Author SHA1 Message Date
1f0854fff6 Fix ui::edit text rendering 2022-05-23 22:18:32 +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
f01feb7b7f Remove ui::edit::own_style_updated override 2022-05-14 16:04:50 +03:00
8ca5ab3f25 Support whole-word caret movement in ui::edit 2022-05-10 12:01:46 +03:00
922daee6d2 Support whole-word deletion in ui::edit 2022-05-10 12:01:33 +03:00
39fe68e6f7 Notify text changed when editing canceled in ui::edit 2022-05-10 11:58:08 +03:00
9a3620f186 Reset ui::edit caret on various events 2022-05-10 11:51:47 +03:00
ec228d481b Make ui::edit caret visible when changing its position via cursor 2022-05-08 11:58:34 +03:00
9a56228231 Support on_text_changed callback in ui::edit 2022-05-08 11:56:45 +03:00
4b7221db26 Fix ui::edit numeric validators 2022-04-16 17:13:52 +03:00
8d3c227285 Replace a dynamic_cast with a static_cast 2022-04-11 20:19:16 +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
c06a465f51 Make ui::edit clip renderered text by text box using stencil 2022-04-08 12:37:16 +03:00
5066dd6494 Support a separate text bbox in ui::edit 2022-04-08 12:36:23 +03:00
399250fe19 Fix ui::edit key event handling 2022-04-08 11:42:20 +03:00
bbeb05f34e Refactor SDL2 cursor manipulation 2022-04-06 17:52:32 +03:00
5c401d6d50 Make ui::edit change cursors on mouseover 2022-04-06 17:24:20 +03:00
f7568535b6 Add ui::edit text input element 2022-04-01 17:43:35 +03:00