1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

FontEditor: Clean up GlyphMapWidget header

Fixes minor organizational inconsistency and zeroes initializations
for rows and columns as the previous values haven't been meaningful
since the map was converted to a scrollable widget. No functional
changes.
This commit is contained in:
thankyouverycool 2021-11-29 10:52:50 -05:00 committed by Andreas Kling
parent 7d73d2dfc8
commit 9b184fc1cb

View file

@ -18,7 +18,8 @@ public:
int selected_glyph() const { return m_selected_glyph; }
void set_selected_glyph(int);
void scroll_to_glyph(int glyph);
void scroll_to_glyph(int);
void update_glyph(int);
int rows() const { return m_rows; }
int columns() const { return m_columns; }
@ -26,8 +27,6 @@ public:
Gfx::BitmapFont& font() { return *m_font; }
const Gfx::BitmapFont& font() const { return *m_font; }
void update_glyph(int);
Function<void(int)> on_glyph_selected;
private:
@ -41,8 +40,8 @@ private:
RefPtr<Gfx::BitmapFont> m_font;
int m_glyph_count { 0x110000 };
int m_columns { 32 };
int m_rows { 12 };
int m_columns { 0 };
int m_rows { 0 };
int m_horizontal_spacing { 2 };
int m_vertical_spacing { 2 };
int m_selected_glyph { 0 };