mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
LibWeb: Plumb svg stroking state to DisplayListPlayerSkia
The state is still ignored there, so no behavior change, but this should make it fairly easy to actually implement complete stroking support for SVGs.
This commit is contained in:
parent
201648485f
commit
f4b0d17e4b
Notes:
github-actions[bot]
2024-11-22 11:22:20 +00:00
Author: https://github.com/nico
Commit: f4b0d17e4b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2490
7 changed files with 96 additions and 3 deletions
|
@ -72,6 +72,19 @@ public:
|
|||
void line_to(Gfx::FloatPoint const& point) { impl().line_to(point); }
|
||||
void close_all_subpaths() { impl().close_all_subpaths(); }
|
||||
void close() { impl().close(); }
|
||||
|
||||
enum class CapStyle {
|
||||
Butt,
|
||||
Round,
|
||||
Square,
|
||||
};
|
||||
|
||||
enum class JoinStyle {
|
||||
Miter,
|
||||
Round,
|
||||
Bevel,
|
||||
};
|
||||
|
||||
void elliptical_arc_to(FloatPoint point, FloatSize radii, float x_axis_rotation, bool large_arc, bool sweep) { impl().elliptical_arc_to(point, radii, x_axis_rotation, large_arc, sweep); }
|
||||
void arc_to(FloatPoint point, float radius, bool large_arc, bool sweep) { impl().arc_to(point, radius, large_arc, sweep); }
|
||||
void quadratic_bezier_curve_to(FloatPoint through, FloatPoint point) { impl().quadratic_bezier_curve_to(through, point); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue