Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::SvgPathSegment Struct Reference

Parsed path segment — flat, allocation-light, ready to replay onto a Canvas in a single pass during paint(). More...

#include <svg_path_widget.hpp>

Public Types

enum class  Op {
  move_to , line_to , quad_to , cubic_to ,
  close_path
}

Public Attributes

Op op = Op::move_to
float p [6] = {}

Detailed Description

Parsed path segment — flat, allocation-light, ready to replay onto a Canvas in a single pass during paint().

Member Enumeration Documentation

◆ Op

enum class pulp::view::SvgPathSegment::Op
strong
Enumerator
move_to 

(x, y)

line_to 

(x, y)

quad_to 

(cpx, cpy, x, y)

cubic_to 

(cp1x, cp1y, cp2x, cp2y, x, y)

close_path 

Member Data Documentation

◆ op

Op pulp::view::SvgPathSegment::op = Op::move_to

◆ p

float pulp::view::SvgPathSegment::p[6] = {}

The documentation for this struct was generated from the following file: