1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

LibGUI: Allow GlyphMapWidget to filter by code point ranges

This commit is contained in:
thankyouverycool 2022-02-13 13:46:45 -05:00 committed by Tim Flynn
parent 5658524aa3
commit 170afc2f47
2 changed files with 44 additions and 20 deletions

View file

@ -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 };
};
}