1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:48:11 +00:00

LibGfx: Support vertical gradient fill (not just horizontal) :^)

This commit is contained in:
Andreas Kling 2020-03-30 16:59:45 +02:00
parent 098f1cd0ca
commit cbd7effd3b
2 changed files with 31 additions and 10 deletions

View file

@ -45,6 +45,7 @@ public:
~Painter();
void clear_rect(const Rect&, Color);
void fill_rect(const Rect&, Color);
void fill_rect_with_gradient(Orientation, const Rect&, Color gradient_start, Color gradient_end);
void fill_rect_with_gradient(const Rect&, Color gradient_start, Color gradient_end);
void draw_rect(const Rect&, Color, bool rough = false);
void draw_bitmap(const Point&, const CharacterBitmap&, Color = Color());