izzi
SVG SUBSET C++ API
Loading...
Searching...
No Matches
svg::stroke_style Struct Reference

Additional path/line/polyline stroke styles. NB: https://yuanchuan.dev/fun-with-stroke-dasharray. More...

#include <a60-svg-base-types.h>

Static Public Member Functions

static string create_dasharray_n (const uint lsize, const uint n)
 Create dash array variations with exponentially-increasing spaces. dasharray 1 = solid line dasharray 2 = 1 == 2 2 dasharray 3 = 2 == 2 4 dasharray 4 = 3 == 2 6.

Public Attributes

string marker_defs
 Marker string pointing to definitions elements. For graph_mode 1, this means the SVG equivalent of CSS elements: marker-start, marker-mid, marker-end.
marker_shape marker_form
 Marker shapes. For graph_mode 2, this means the marker_shape of the mark.
ushort marker_reps
 Marker repetitions, if any. Default is zero, no repitition, single marker.
string dasharray
 Line dash vs. space configuration. Options are single value, like 2, meaning 2 sized dash 2 sized space. Or, double values with size of dash followed by size of space. Or, more elaborate patterns of on, off https://developer.mozilla.org/en-US/docs/Web/CSS/stroke-dasharray.
string dashoffset
 Starting offset for line dashes. https://developer.mozilla.org/en-US/docs/Web/CSS/stroke-dashoffset.
string linecap
 Shape of end of line segments in line dashes. SVG Values are: butt, round, square. https://developer.mozilla.org/en-US/docs/Web/CSS/stroke-linecap.
string path_length

Detailed Description

Additional path/line/polyline stroke styles. NB: https://yuanchuan.dev/fun-with-stroke-dasharray.

Definition at line 214 of file a60-svg-base-types.h.

Member Function Documentation

◆ create_dasharray_n()

string svg::stroke_style::create_dasharray_n ( const uint lsize,
const uint n )
inlinestatic

Create dash array variations with exponentially-increasing spaces. dasharray 1 = solid line dasharray 2 = 1 == 2 2 dasharray 3 = 2 == 2 4 dasharray 4 = 3 == 2 6.

Parameters
lsizeis style._M_stroke_size

Definition at line 253 of file a60-svg-base-types.h.

Here is the call graph for this function:

Member Data Documentation

◆ marker_defs

string svg::stroke_style::marker_defs

Marker string pointing to definitions elements. For graph_mode 1, this means the SVG equivalent of CSS elements: marker-start, marker-mid, marker-end.

Definition at line 219 of file a60-svg-base-types.h.

◆ marker_form

marker_shape svg::stroke_style::marker_form

Marker shapes. For graph_mode 2, this means the marker_shape of the mark.

Definition at line 223 of file a60-svg-base-types.h.

◆ marker_reps

ushort svg::stroke_style::marker_reps

Marker repetitions, if any. Default is zero, no repitition, single marker.

Definition at line 226 of file a60-svg-base-types.h.

◆ dasharray

string svg::stroke_style::dasharray

Line dash vs. space configuration. Options are single value, like 2, meaning 2 sized dash 2 sized space. Or, double values with size of dash followed by size of space. Or, more elaborate patterns of on, off https://developer.mozilla.org/en-US/docs/Web/CSS/stroke-dasharray.

Definition at line 233 of file a60-svg-base-types.h.

◆ dashoffset

string svg::stroke_style::dashoffset

Starting offset for line dashes. https://developer.mozilla.org/en-US/docs/Web/CSS/stroke-dashoffset.

Definition at line 237 of file a60-svg-base-types.h.

◆ linecap

string svg::stroke_style::linecap

Shape of end of line segments in line dashes. SVG Values are: butt, round, square. https://developer.mozilla.org/en-US/docs/Web/CSS/stroke-linecap.

Definition at line 242 of file a60-svg-base-types.h.

◆ path_length

string svg::stroke_style::path_length

Definition at line 244 of file a60-svg-base-types.h.


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