diff options
author | Robin Burchell <robin+git@viroteck.net> | 2019-06-02 15:56:33 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-03 20:27:05 +0200 |
commit | ab004f73bf042d118da2ff326640c912703192af (patch) | |
tree | 59ca8d1a774620b67aa25a7d4fa69d09a1d7b249 /SharedGraphics/Painter.h | |
parent | 1024dfa81ab391765eb8838cfc7e58b03e2cb5c6 (diff) | |
download | serenity-ab004f73bf042d118da2ff326640c912703192af.zip |
Painter: Reduce the number of draw_text overloads to only involve StringView
No more char + int sequences, as that's literally what StringView is for.
Diffstat (limited to 'SharedGraphics/Painter.h')
-rw-r--r-- | SharedGraphics/Painter.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/SharedGraphics/Painter.h b/SharedGraphics/Painter.h index 1008d287ab..593474e3c3 100644 --- a/SharedGraphics/Painter.h +++ b/SharedGraphics/Painter.h @@ -30,8 +30,6 @@ public: void blit_tiled(const Point&, const GraphicsBitmap&, const Rect& src_rect); void blit_offset(const Point&, const GraphicsBitmap&, const Rect& src_rect, const Point&); void blit_scaled(const Point&, const GraphicsBitmap&, const Rect& src_rect, const Size&); - void draw_text(const Rect&, const char* text, int length, const Font&, TextAlignment = TextAlignment::TopLeft, Color = Color::Black, TextElision = TextElision::None); - void draw_text(const Rect&, const char* text, int length, TextAlignment = TextAlignment::TopLeft, Color = Color::Black, TextElision = TextElision::None); void draw_text(const Rect&, const StringView&, const Font&, TextAlignment = TextAlignment::TopLeft, Color = Color::Black, TextElision = TextElision::None); void draw_text(const Rect&, const StringView&, TextAlignment = TextAlignment::TopLeft, Color = Color::Black, TextElision = TextElision::None); void draw_glyph(const Point&, char, Color); |