mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibDraw: Add Painter::clear_rect() for filling a rect without blending
Sometimes you want to fill a rect with a specific color without alpha blending it with whatever's already there.
This commit is contained in:
parent
029455cb40
commit
c645d9fe4a
2 changed files with 24 additions and 8 deletions
|
@ -19,6 +19,7 @@ class Painter {
|
|||
public:
|
||||
explicit Painter(GraphicsBitmap&);
|
||||
~Painter();
|
||||
void clear_rect(const Rect&, Color);
|
||||
void fill_rect(const Rect&, Color);
|
||||
void fill_rect_with_gradient(const Rect&, Color gradient_start, Color gradient_end);
|
||||
void draw_rect(const Rect&, Color, bool rough = false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue