From df443863bdca014660c26f65d9a3ad4d9831cb83 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Fri, 18 Mar 2022 20:34:58 -0400 Subject: LibGUI: Add set_selection() convenience helper to GlyphMapWidget --- Userland/Libraries/LibGUI/GlyphMapWidget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland/Libraries/LibGUI/GlyphMapWidget.h') 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 active_glyph = {}); void clear_selection() { m_selection.set_size(0); } void scroll_to_glyph(int); void update_glyph(int); -- cgit v1.2.3