139 return stroke_miter_limit_;
154 const std::string&
path_data()
const {
return path_data_; }
155 const std::vector<SvgPathSegment>&
segments()
const {
return segments_; }
183 void repaint_extent_change(
const Rect& before);
185 std::string path_data_;
186 std::vector<SvgPathSegment> segments_;
189 std::string fill_gradient_;
190 std::string stroke_gradient_;
191 float stroke_width_ = 1.0f;
192 std::optional<canvas::LineCap> stroke_cap_;
193 std::optional<canvas::LineJoin> stroke_join_;
194 std::optional<float> stroke_miter_limit_;
196 float viewbox_w_ = 0.0f;
197 float viewbox_h_ = 0.0f;
198 bool stretch_to_bounds_ =
false;
199 bool has_fill_ =
true;
200 bool has_stroke_ =
false;
Definition canvas.hpp:240
Definition affine_transform.hpp:24
FillRule
Winding rule used to decide what counts as "inside" a path.
Definition path.hpp:54
@ nonzero
Definition path.hpp:54
LineJoin
Join applied where two segments meet when stroking.
Definition path.hpp:60
LineCap
Line cap applied to the ends of open subpaths when stroking.
Definition path.hpp:57
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
@ c
Definition input_events.hpp:39
@ w
Definition input_events.hpp:41
@ height
Definition css_animation.hpp:128
@ width
Definition css_animation.hpp:127
@ stretch
Definition design_ir.hpp:57
Axis-aligned rectangle in continuous (float) coordinates.
Definition geometry.hpp:52
Parsed path segment — flat, allocation-light, ready to replay onto a Canvas in a single pass during p...
Definition svg_path_widget.hpp:22
Op
Definition svg_path_widget.hpp:23
@ cubic_to
(cp1x, cp1y, cp2x, cp2y, x, y)
Definition svg_path_widget.hpp:27
@ line_to
(x, y)
Definition svg_path_widget.hpp:25
@ move_to
(x, y)
Definition svg_path_widget.hpp:24
@ close_path
Definition svg_path_widget.hpp:28
@ quad_to
(cpx, cpy, x, y)
Definition svg_path_widget.hpp:26
float p[6]
Definition svg_path_widget.hpp:31
Op op
Definition svg_path_widget.hpp:30