1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 22:21:00 +00:00
serenity/Userland
Max Wipfli de67d86696 LibGUI: Add glyph substitution to TextEditor
This patch adds the member variable m_substitution_code_point to
GUI::TextEditor. If non-zero, all gylphs to be drawn will be substituted
with the specified code point. This is mainly needed to support a
PasswordBox.

While the primary use-case is for single-line editors, multi-line
editors are also supported.

To prevent repeated String construction, a m_substitution_string_data
members has been added, which is an OwnPtr<Vector<u32>>. This is used as
a UTF-32 string builder. The substitution_code_point_view method uses
that Vector to provide a Utf32View of the specified length.
2021-06-30 11:12:25 +02:00
..
Applets Everywhere: Add component declarations 2021-06-17 11:03:51 +02:00
Applications LibVideo: Migrate to east-const style & apply other minor fixes 2021-06-30 11:03:51 +02:00
Demos Everywhere: Add component declarations 2021-06-17 11:03:51 +02:00
DevTools AK+Everywhere: Change int to size_t in JsonObject and JsonArray 2021-06-29 13:18:03 +02:00
DynamicLoader DynamicLoader: Implement self relocations for x86_64 2021-06-29 20:03:36 +02:00
Games Games: Add Spider 2021-06-24 10:32:53 +02:00
Libraries LibGUI: Add glyph substitution to TextEditor 2021-06-30 11:12:25 +02:00
Services LibWeb+WebContent: Add IPC flow for Inspect DOM Tree 2021-06-29 23:06:48 +02:00
Shell Shell: Don't do null check on NonnullRefPtr<T> 2021-06-29 22:57:52 +04:30
Utilities LibVideo: Migrate to east-const style & apply other minor fixes 2021-06-30 11:03:51 +02:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00