mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:07:45 +00:00
LibGfx/Painter: Add draw_rect_with_thickness
method
Previously there was no way to draw rectangles with any specific thickness, like we can do with ellises, for instance. This method is just a simple wrapper around `draw_line()` several times. At least for now, we don't need to do anything sophisticated since this will only be used by PixelPaint.`
This commit is contained in:
parent
6910cbc075
commit
9ed32582e2
2 changed files with 17 additions and 0 deletions
|
@ -42,6 +42,7 @@ public:
|
|||
void fill_rect_with_rounded_corners(const IntRect&, Color, int top_left_radius, int top_right_radius, int bottom_right_radius, int bottom_left_radius);
|
||||
void fill_ellipse(const IntRect&, Color);
|
||||
void draw_rect(const IntRect&, Color, bool rough = false);
|
||||
void draw_rect_with_thickness(const IntRect&, Color, int thickness);
|
||||
void draw_focus_rect(const IntRect&, Color);
|
||||
void draw_bitmap(const IntPoint&, const CharacterBitmap&, Color = Color());
|
||||
void draw_bitmap(const IntPoint&, const GlyphBitmap&, Color = Color());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue