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

LibAccelGfx+LibWeb: Add basic line painting support

For now only solid line style is supported.
This commit is contained in:
Aliaksandr Kalenik 2023-11-08 12:39:03 +01:00 committed by Andreas Kling
parent f1824a524d
commit 28118623f5
3 changed files with 42 additions and 2 deletions

View file

@ -46,6 +46,9 @@ public:
Bilinear,
};
void draw_line(Gfx::IntPoint a, Gfx::IntPoint b, float thickness, Gfx::Color color);
void draw_line(Gfx::FloatPoint a, Gfx::FloatPoint b, float thickness, Gfx::Color color);
void draw_scaled_bitmap(Gfx::FloatRect const& dst_rect, Gfx::Bitmap const&, Gfx::FloatRect const& src_rect, ScalingMode = ScalingMode::NearestNeighbor);
void draw_scaled_bitmap(Gfx::IntRect const& dst_rect, Gfx::Bitmap const&, Gfx::IntRect const& src_rect, ScalingMode = ScalingMode::NearestNeighbor);