mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb+LibGfx: Paint line_cap, line_join for Canvas Strokes
This commit is contained in:
parent
12968ff025
commit
bb87de58a0
Notes:
github-actions[bot]
2025-03-15 13:03:28 +00:00
Author: https://github.com/mehrankamal
Commit: bb87de58a0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3944
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/nico ✅
7 changed files with 209 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <LibGfx/Filter.h>
|
||||
#include <LibGfx/Forward.h>
|
||||
#include <LibGfx/PaintStyle.h>
|
||||
#include <LibGfx/Path.h>
|
||||
#include <LibGfx/ScalingMode.h>
|
||||
#include <LibGfx/WindingRule.h>
|
||||
|
||||
|
@ -30,6 +31,7 @@ public:
|
|||
virtual void stroke_path(Gfx::Path const&, Gfx::Color, float thickness) = 0;
|
||||
virtual void stroke_path(Gfx::Path const&, Gfx::Color, float thickness, float blur_radius, Gfx::CompositingAndBlendingOperator compositing_and_blending_operator) = 0;
|
||||
virtual void stroke_path(Gfx::Path const&, Gfx::PaintStyle const&, ReadonlySpan<Gfx::Filter>, float thickness, float global_alpha, Gfx::CompositingAndBlendingOperator compositing_and_blending_operator) = 0;
|
||||
virtual void stroke_path(Gfx::Path const&, Gfx::PaintStyle const&, ReadonlySpan<Gfx::Filter>, float thickness, float global_alpha, Gfx::CompositingAndBlendingOperator compositing_and_blending_operator, Gfx::Path::CapStyle const&, Gfx::Path::JoinStyle const&) = 0;
|
||||
|
||||
virtual void fill_path(Gfx::Path const&, Gfx::Color, Gfx::WindingRule) = 0;
|
||||
virtual void fill_path(Gfx::Path const&, Gfx::Color, Gfx::WindingRule, float blur_radius, Gfx::CompositingAndBlendingOperator compositing_and_blending_operator) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue