diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2022-02-13 13:46:45 -0500 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-02-15 10:13:19 -0500 |
commit | 170afc2f47bbbc289021be7f2b71e5697f83ad8b (patch) | |
tree | e8d98f12ab3d375960b0ae30dfe75a8d20c7cee6 /Userland/Libraries/LibGUI/GlyphMapWidget.h | |
parent | 5658524aa332e67a512f45d6a4a4af97a0f1e4f5 (diff) | |
download | serenity-170afc2f47bbbc289021be7f2b71e5697f83ad8b.zip |
LibGUI: Allow GlyphMapWidget to filter by code point ranges
Diffstat (limited to 'Userland/Libraries/LibGUI/GlyphMapWidget.h')
-rw-r--r-- | Userland/Libraries/LibGUI/GlyphMapWidget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/GlyphMapWidget.h b/Userland/Libraries/LibGUI/GlyphMapWidget.h index 518c616aa7..f2295d95fe 100644 --- a/Userland/Libraries/LibGUI/GlyphMapWidget.h +++ b/Userland/Libraries/LibGUI/GlyphMapWidget.h @@ -10,6 +10,7 @@ #include <LibGUI/AbstractScrollableWidget.h> #include <LibGUI/TextRange.h> #include <LibGfx/BitmapFont.h> +#include <LibUnicode/CharacterTypes.h> namespace GUI { @@ -50,6 +51,7 @@ public: No }; + void set_active_range(Unicode::CodePointRange); void set_active_glyph(int, ShouldResetSelection = ShouldResetSelection::Yes); void clear_selection() { m_selection.set_size(0); } void scroll_to_glyph(int); @@ -89,6 +91,7 @@ private: int m_active_glyph { 0 }; int m_visible_glyphs { 0 }; bool m_in_drag_select { false }; + Unicode::CodePointRange m_active_range { 0x0000, 0x10FFFF }; }; } |