diff options
author | Max Wipfli <mail@maxwipfli.ch> | 2021-06-25 17:48:51 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-30 11:12:25 +0200 |
commit | de67d86696cec8a3efb46fe4f44c606334841994 (patch) | |
tree | 7df66f2ecca2ab137589b6a2d531e169d146bb94 /Userland/Libraries/LibProtocol/WebSocket.cpp | |
parent | 37961bf7cbf55bfbca69919f7ab0e75e5edc43ba (diff) | |
download | serenity-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/LibProtocol/WebSocket.cpp')
0 files changed, 0 insertions, 0 deletions