A View that renders an inline SVG path-data string. More...
#include <pulp/view/view.hpp>#include <pulp/canvas/canvas.hpp>#include <pulp/canvas/path.hpp>#include <optional>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | pulp::view::SvgPathSegment |
| Parsed path segment — flat, allocation-light, ready to replay onto a Canvas in a single pass during paint(). More... | |
| class | pulp::view::SvgPathWidget |
| Renders an inline SVG <path d="..."> icon. More... | |
Namespaces | |
| namespace | pulp |
| namespace | pulp::view |
| Hover-cursor tracking for platform window hosts. | |
A View that renders an inline SVG path-data string.
Targets HTML patterns of the form <svg viewBox="0 0 24 24"><path d="M..."/></svg> — common for icon glyphs in React/HTML bundles. The widget parses the path data once on set_path() into a flat list of Canvas2D path segments, then replays them in paint() at the widget's bounds, scaled from the source viewBox.