summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/Painter.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGfx/Painter.h')
-rw-r--r--Libraries/LibGfx/Painter.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibGfx/Painter.h b/Libraries/LibGfx/Painter.h
index cb3271214b..4983f0ef8b 100644
--- a/Libraries/LibGfx/Painter.h
+++ b/Libraries/LibGfx/Painter.h
@@ -79,6 +79,9 @@ public:
void draw_text(const IntRect&, const StringView&, TextAlignment = TextAlignment::TopLeft, Color = Color::Black, TextElision = TextElision::None);
void draw_text(const IntRect&, const Utf32View&, const Font&, TextAlignment = TextAlignment::TopLeft, Color = Color::Black, TextElision = TextElision::None);
void draw_text(const IntRect&, const Utf32View&, TextAlignment = TextAlignment::TopLeft, Color = Color::Black, TextElision = TextElision::None);
+ void draw_text(Function<void(const IntRect&, u32)>, const IntRect&, const StringView&, const Font&, TextAlignment = TextAlignment::TopLeft, TextElision = TextElision::None);
+ void draw_text(Function<void(const IntRect&, u32)>, const IntRect&, const Utf8View&, const Font&, TextAlignment = TextAlignment::TopLeft, TextElision = TextElision::None);
+ void draw_text(Function<void(const IntRect&, u32)>, const IntRect&, const Utf32View&, const Font&, TextAlignment = TextAlignment::TopLeft, TextElision = TextElision::None);
void draw_glyph(const IntPoint&, u32, Color);
void draw_glyph(const IntPoint&, u32, const Font&, Color);
void draw_emoji(const IntPoint&, const Gfx::Bitmap&, const Font&);
@@ -135,9 +138,6 @@ protected:
void blit_with_opacity(const IntPoint&, const Gfx::Bitmap&, const IntRect& src_rect, float opacity);
void draw_pixel(const IntPoint&, Color, int thickness = 1);
- void draw_text_line(const IntRect&, const Utf8View&, const Font&, TextAlignment, Color, TextElision);
- void draw_text_line(const IntRect&, const Utf32View&, const Font&, TextAlignment, Color, TextElision);
-
struct State {
const Font* font;
IntPoint translation;