diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-12-07 20:50:34 +0000 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-12-08 12:46:03 +0000 |
commit | 83f31cb4a7d5724e59a4baf05bd46d092dc15be9 (patch) | |
tree | 21308c68419e51ded9646187b2f347c24fc698b8 /Userland/Libraries/LibGfx/Painter.h | |
parent | d2334957ba826d3cbcc628733ed1ec7d04ca0507 (diff) | |
download | serenity-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.h | 1 |
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 { |