summaryrefslogtreecommitdiff
path: root/Userland/Libraries/CMakeLists.txt
diff options
context:
space:
mode:
authorMax Wipfli <mail@maxwipfli.ch>2021-06-25 17:48:51 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-30 11:12:25 +0200
commitde67d86696cec8a3efb46fe4f44c606334841994 (patch)
tree7df66f2ecca2ab137589b6a2d531e169d146bb94 /Userland/Libraries/CMakeLists.txt
parent37961bf7cbf55bfbca69919f7ab0e75e5edc43ba (diff)
downloadserenity-de67d86696cec8a3efb46fe4f44c606334841994.zip
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.
Diffstat (limited to 'Userland/Libraries/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions