mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
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>()`.
This commit is contained in:
parent
d2334957ba
commit
83f31cb4a7
4 changed files with 13 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue