diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2022-03-18 20:34:58 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-20 20:00:25 +0100 |
commit | df443863bdca014660c26f65d9a3ad4d9831cb83 (patch) | |
tree | 74f865726a8bcb9a989d703b652ba7eee22cdf59 /Userland/Libraries/LibGUI/GlyphMapWidget.h | |
parent | 5c6326ae230ded7783ce949ec72b0323d9af41f4 (diff) | |
download | serenity-df443863bdca014660c26f65d9a3ad4d9831cb83.zip |
LibGUI: Add set_selection() convenience helper to GlyphMapWidget
Diffstat (limited to 'Userland/Libraries/LibGUI/GlyphMapWidget.h')
-rw-r--r-- | Userland/Libraries/LibGUI/GlyphMapWidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/GlyphMapWidget.h b/Userland/Libraries/LibGUI/GlyphMapWidget.h index 9d1dfe2b3c..66afecf806 100644 --- a/Userland/Libraries/LibGUI/GlyphMapWidget.h +++ b/Userland/Libraries/LibGUI/GlyphMapWidget.h @@ -55,6 +55,7 @@ public: void set_active_range(Unicode::CodePointRange); void set_active_glyph(int, ShouldResetSelection = ShouldResetSelection::Yes); + void set_selection(int start, int size, Optional<u32> active_glyph = {}); void clear_selection() { m_selection.set_size(0); } void scroll_to_glyph(int); void update_glyph(int); |