1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

LibGfx: Add .as_rect() to AntiAliasingPainter::CornerRadius

This commit is contained in:
MacDue 2022-06-13 23:32:15 +01:00 committed by Linus Groh
parent c1798620d9
commit 411a815c3b

View file

@ -49,6 +49,11 @@ public:
{
return horizontal_radius > 0 && vertical_radius > 0;
}
Gfx::IntRect as_rect() const
{
return { 0, 0, horizontal_radius, vertical_radius };
}
};
void fill_rect_with_rounded_corners(IntRect const&, Color, CornerRadius top_left, CornerRadius top_right, CornerRadius bottom_right, CornerRadius bottom_left, BlendMode blend_mode = BlendMode::Normal);