summaryrefslogtreecommitdiff
path: root/Applications/FontEditor/GlyphMapWidget.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-03 21:17:35 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-03 21:20:13 +0200
commit27f699ef0c8c2dce0f1dff19eef25f02e3da397e (patch)
tree52f95be1d05ba2a621d3bb8ac9129341f8d9973b /Applications/FontEditor/GlyphMapWidget.h
parentc4c4bbc5ba5119e9ccc8ded948b26e7c4851a909 (diff)
downloadserenity-27f699ef0c8c2dce0f1dff19eef25f02e3da397e.zip
AK: Rename the common integer typedefs to make it obvious what they are.
These types can be picked up by including <AK/Types.h>: * u8, u16, u32, u64 (unsigned) * i8, i16, i32, i64 (signed)
Diffstat (limited to 'Applications/FontEditor/GlyphMapWidget.h')
-rw-r--r--Applications/FontEditor/GlyphMapWidget.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Applications/FontEditor/GlyphMapWidget.h b/Applications/FontEditor/GlyphMapWidget.h
index 521c0f7c2f..944aca6542 100644
--- a/Applications/FontEditor/GlyphMapWidget.h
+++ b/Applications/FontEditor/GlyphMapWidget.h
@@ -8,8 +8,8 @@ public:
GlyphMapWidget(Font&, GWidget* parent);
virtual ~GlyphMapWidget() override;
- byte selected_glyph() const { return m_selected_glyph; }
- void set_selected_glyph(byte);
+ u8 selected_glyph() const { return m_selected_glyph; }
+ void set_selected_glyph(u8);
int rows() const { return m_rows; }
int columns() const { return 256 / m_rows; }
@@ -20,19 +20,19 @@ public:
Font& font() { return *m_font; }
const Font& font() const { return *m_font; }
- void update_glyph(byte);
+ void update_glyph(u8);
- Function<void(byte)> on_glyph_selected;
+ Function<void(u8)> on_glyph_selected;
private:
virtual void paint_event(GPaintEvent&) override;
virtual void mousedown_event(GMouseEvent&) override;
- Rect get_outer_rect(byte glyph) const;
+ Rect get_outer_rect(u8 glyph) const;
RefPtr<Font> m_font;
int m_rows { 8 };
int m_horizontal_spacing { 2 };
int m_vertical_spacing { 2 };
- byte m_selected_glyph { 0 };
+ u8 m_selected_glyph { 0 };
};