summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/Painter.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-12-07 20:50:34 +0000
committerSam Atkins <atkinssj@gmail.com>2022-12-08 12:46:03 +0000
commit83f31cb4a7d5724e59a4baf05bd46d092dc15be9 (patch)
tree21308c68419e51ded9646187b2f347c24fc698b8 /Userland/Libraries/LibGfx/Painter.h
parentd2334957ba826d3cbcc628733ed1ec7d04ca0507 (diff)
downloadserenity-83f31cb4a7d5724e59a4baf05bd46d092dc15be9.zip
LibGfx: Add int overloads for (AntiAliasing)Painter float methods
Without this change, the upcoming LibWeb pixel types will require a silly doubled conversion in some places. eg: `some_rect.to_type<int>().to_type<float>()` With these overloads, we can get away with `some_rect.to_type<int>()`.
Diffstat (limited to 'Userland/Libraries/LibGfx/Painter.h')
-rw-r--r--Userland/Libraries/LibGfx/Painter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/Painter.h b/Userland/Libraries/LibGfx/Painter.h
index c3e878b3ca..1669386b36 100644
--- a/Userland/Libraries/LibGfx/Painter.h
+++ b/Userland/Libraries/LibGfx/Painter.h
@@ -96,6 +96,7 @@ public:
void draw_circle_arc_intersecting(IntRect const&, IntPoint, int radius, Color, int thickness);
// Streamlined text drawing routine that does no wrapping/elision/alignment.
+ void draw_text_run(IntPoint baseline_start, Utf8View const&, Font const&, Color);
void draw_text_run(FloatPoint baseline_start, Utf8View const&, Font const&, Color);
enum class CornerOrientation {