mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
LibGfx: Add .as_rect() to AntiAliasingPainter::CornerRadius
This commit is contained in:
parent
c1798620d9
commit
411a815c3b
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue