summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/GlyphMapWidget.h
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-03-18 20:34:58 -0400
committerAndreas Kling <kling@serenityos.org>2022-03-20 20:00:25 +0100
commitdf443863bdca014660c26f65d9a3ad4d9831cb83 (patch)
tree74f865726a8bcb9a989d703b652ba7eee22cdf59 /Userland/Libraries/LibGUI/GlyphMapWidget.h
parent5c6326ae230ded7783ce949ec72b0323d9af41f4 (diff)
downloadserenity-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.h1
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);