izzi
SVG SUBSET C++ API
Loading...
Searching...
No Matches
svg::constants Namespace Reference

Enumerations

enum class  rrotation { none , cw , ccw }
 Radial rotation direction. More...
 

Functions

constexpr char space (' ')
 Formatting character constants.
 
constexpr char quote ('"')
 
constexpr char hyphen ('-')
 
constexpr char comma (',')
 
constexpr char tab ('\t')
 
constexpr char newline ('\n')
 
constexpr double pi (3.14159265358979323846)
 

Variables

constexpr area no_area = { 0, 0 }
 
constexpr area letter_mm_h = { 216, 279 }
 Area Constants in millimeter units.
 
constexpr area a2_mm_h = { 420, 594 }
 
constexpr area a4_mm_h = { 210, 297 }
 
constexpr area a5_mm_h = { 148, 210 }
 
constexpr area a6_mm_h = { 105, 148 }
 
constexpr area a2_096_h = { 2245, 1587 }
 Area Constants in pixel units. Pixel constants are using 96 PPI unless otherwise noted.
 
constexpr area a4_096_h = { 1123, 794 }
 
constexpr area a5_096_h = { 794, 559 }
 
constexpr area a6_096_h = { 559, 397 }
 
constexpr area a2_096_v = { 1587, 2245 }
 
constexpr area a4_096_v = { 794, 1123 }
 
constexpr area a5_096_v = { 559, 794 }
 
constexpr area a6_096_v = { 397, 559 }
 
constexpr area letter_096_v = { 816, 1056 }
 
constexpr area letter_096_h = { 1056, 816 }
 
constexpr area letterb_096_v = { 816, 1056 }
 Letter bleed (8.625 w x 11.25 h)
 
constexpr area letterb_096_h = { 1056, 816 }
 
constexpr area square8_096 = { 768, 768 }
 Square 8 (8 w x 8 h)
 
constexpr area square8bis_096 = { 816, 816 }
 Square 8bis (8.5 w x 8.5 h)
 
constexpr area square8bisb_096_v = { 828, 840 }
 Square 8bis bleed (8.625 w x 8.75 h) (219 x 222 mm)
 
constexpr area square8bisb_096_h = { 840, 826 }
 
constexpr area square17b_096_v = { 1656, 1680 }
 Square 17 bleed 2 x (8.625 w x 8.75 h) for above at 2x.
 
constexpr area square17b_096_h = { 1680, 1656 }
 
constexpr area p22x17_096_h = { 2112, 1632 }
 Engineering C, aka 22 x 17 letter quattro.
 
constexpr area p17x22_096_v = { 1632, 2112 }
 
constexpr area instagram_v = { 1080, 1350 }
 
constexpr area instagram_s = { 1080, 1080 }
 
constexpr area instagram_4ks = { 2160, 2160 }
 
constexpr area v1080p_h = { 1920, 1080 }
 
constexpr area v1080p_v = { 1080, 1920 }
 
constexpr area v4k_h = { 3840, 2160 }
 
constexpr area v4k_v = { 2160, 3840 }
 
constexpr area p44x30_h = { 4224, 2880 }
 Fine Art max sheet, aka 44 x 30 (1.47:1 ~ 3:2)
 
constexpr area p30x44_v = { 2880, 4224 }
 
constexpr area p44x22_h = { 4224, 2112 }
 Fine Art roll, aka 44 x 22 (2:1)
 
constexpr area p22x44_v = { 2112, 4224 }
 
const style no_style = { color::none, 0.0, color::none, 0.0, 0 }
 Style constants.
 
const style b_style = { color::black, 1.0, color::white, 0.0, 0.5 }
 
const style w_style = { color::white, 1.0, color::black, 0.0, 0.5 }
 
const style r_style = { color::red, 1.0, color::red, 0.0, 0.5 }
 
const style wcaglg_style = { color::wcag_lgray, 1.0, color::wcag_lgray, 0.0, 0.5 }
 
const style wcagg_style = { color::wcag_gray, 1.0, color::wcag_gray, 0.0, 0.5 }
 
const style wcagdg_style = { color::wcag_dgray, 1.0, color::wcag_dgray, 0.0, 0.5 }
 
typography::anchor a = typography::anchor::middle
 Useful typography constants.
 
typography::align al = typography::align::center
 
typography::weight w = typography::weight::normal
 
typography::property p = typography::property::normal
 
typography::baseline b = typography::baseline::none
 
const char * sserif = "Source Serif Pro"
 
const char * ssans = "Source Sans Pro"
 
const char * smono = "Source Code Pro"
 
const char * shsans = "Source Han Sans CN"
 
const char * aprcu = "Apercu"
 
const char * aprcumo = "Apercu Mono"
 
const char * ccode = "Calling Code"
 
const char * zslab = "Zilla Slab"
 
const char * mexcellent = "Mexcellent"
 
const char * hyperl = "Atkinson Hyperlegible"
 
const typography smono_typo = { smono, 12, b_style, a, al, b, w, p }
 
const typography sserif_typo = { sserif, 12, b_style, a, al, b, w, p }
 
const typography ssans_typo = { ssans, 12, b_style, a, al, b, w, p }
 
const typography shsans_typo = { shsans, 12, b_style, a, al, b, w, p }
 
const typography apercu_typo = { aprcu, 12, b_style, a, al, b, w, p }
 
const typography apercumo_typo = { aprcumo, 12, b_style, a, al, b, w, p }
 
const typography ccode_typo = { ccode, 12, b_style, a, al, b, w, p }
 
const typography zslab_typo = { zslab, 12, b_style, a, al, b, w, p }
 
const typography mxcllnt_typo = { mexcellent, 12, b_style, a, al, b, w, p }
 
const typography hyperl_typo = { hyperl, 12, b_style, a, al, b, w, p }
 

Detailed Description

SVG Constants

Enumeration Type Documentation

◆ rrotation

enum class svg::constants::rrotation
strong

Radial rotation direction.

Enumerator
none 

None.

cw 

Clockwise.

ccw 

Counter-clockwise.

Definition at line 134 of file a60-svg-constants.h.

Function Documentation

◆ space()

char svg::constants::space ( ' ' )
constexpr

Formatting character constants.

◆ quote()

char svg::constants::quote ( '"' )
constexpr

◆ hyphen()

char svg::constants::hyphen ( '-' )
constexpr

◆ comma()

char svg::constants::comma ( ' ,
'  )
constexpr

◆ tab()

char svg::constants::tab ( '\t' )
constexpr

◆ newline()

char svg::constants::newline ( '\n' )
constexpr

◆ pi()

double svg::constants::pi ( 3. 14159265358979323846)
constexpr

Numeric constants. pi = double(22)/double(7); pi = 3.14159265358979323846

Variable Documentation

◆ no_area

area svg::constants::no_area = { 0, 0 }
constexpr

Area constants use [h, v] suffix as per

  • h == horizontal aka landscape
  • v == vertical aka portrait

Definition at line 27 of file a60-svg-constants.h.

◆ letter_mm_h

area svg::constants::letter_mm_h = { 216, 279 }
constexpr

Area Constants in millimeter units.

Definition at line 30 of file a60-svg-constants.h.

◆ a2_mm_h

area svg::constants::a2_mm_h = { 420, 594 }
constexpr

Definition at line 32 of file a60-svg-constants.h.

◆ a4_mm_h

area svg::constants::a4_mm_h = { 210, 297 }
constexpr

Definition at line 33 of file a60-svg-constants.h.

◆ a5_mm_h

area svg::constants::a5_mm_h = { 148, 210 }
constexpr

Definition at line 34 of file a60-svg-constants.h.

◆ a6_mm_h

area svg::constants::a6_mm_h = { 105, 148 }
constexpr

Definition at line 35 of file a60-svg-constants.h.

◆ a2_096_h

area svg::constants::a2_096_h = { 2245, 1587 }
constexpr

Area Constants in pixel units. Pixel constants are using 96 PPI unless otherwise noted.

Definition at line 39 of file a60-svg-constants.h.

◆ a4_096_h

area svg::constants::a4_096_h = { 1123, 794 }
constexpr

Definition at line 40 of file a60-svg-constants.h.

◆ a5_096_h

area svg::constants::a5_096_h = { 794, 559 }
constexpr

Definition at line 41 of file a60-svg-constants.h.

◆ a6_096_h

area svg::constants::a6_096_h = { 559, 397 }
constexpr

Definition at line 42 of file a60-svg-constants.h.

◆ a2_096_v

area svg::constants::a2_096_v = { 1587, 2245 }
constexpr

Definition at line 44 of file a60-svg-constants.h.

◆ a4_096_v

area svg::constants::a4_096_v = { 794, 1123 }
constexpr

Definition at line 45 of file a60-svg-constants.h.

◆ a5_096_v

area svg::constants::a5_096_v = { 559, 794 }
constexpr

Definition at line 46 of file a60-svg-constants.h.

◆ a6_096_v

area svg::constants::a6_096_v = { 397, 559 }
constexpr

Definition at line 47 of file a60-svg-constants.h.

◆ letter_096_v

area svg::constants::letter_096_v = { 816, 1056 }
constexpr

Definition at line 49 of file a60-svg-constants.h.

◆ letter_096_h

area svg::constants::letter_096_h = { 1056, 816 }
constexpr

Definition at line 50 of file a60-svg-constants.h.

◆ letterb_096_v

area svg::constants::letterb_096_v = { 816, 1056 }
constexpr

Letter bleed (8.625 w x 11.25 h)

Definition at line 53 of file a60-svg-constants.h.

◆ letterb_096_h

area svg::constants::letterb_096_h = { 1056, 816 }
constexpr

Definition at line 54 of file a60-svg-constants.h.

◆ square8_096

area svg::constants::square8_096 = { 768, 768 }
constexpr

Square 8 (8 w x 8 h)

Definition at line 57 of file a60-svg-constants.h.

◆ square8bis_096

area svg::constants::square8bis_096 = { 816, 816 }
constexpr

Square 8bis (8.5 w x 8.5 h)

Definition at line 60 of file a60-svg-constants.h.

◆ square8bisb_096_v

area svg::constants::square8bisb_096_v = { 828, 840 }
constexpr

Square 8bis bleed (8.625 w x 8.75 h) (219 x 222 mm)

Definition at line 63 of file a60-svg-constants.h.

◆ square8bisb_096_h

area svg::constants::square8bisb_096_h = { 840, 826 }
constexpr

Definition at line 64 of file a60-svg-constants.h.

◆ square17b_096_v

area svg::constants::square17b_096_v = { 1656, 1680 }
constexpr

Square 17 bleed 2 x (8.625 w x 8.75 h) for above at 2x.

Definition at line 67 of file a60-svg-constants.h.

◆ square17b_096_h

area svg::constants::square17b_096_h = { 1680, 1656 }
constexpr

Definition at line 68 of file a60-svg-constants.h.

◆ p22x17_096_h

area svg::constants::p22x17_096_h = { 2112, 1632 }
constexpr

Engineering C, aka 22 x 17 letter quattro.

Definition at line 71 of file a60-svg-constants.h.

◆ p17x22_096_v

area svg::constants::p17x22_096_v = { 1632, 2112 }
constexpr

Definition at line 72 of file a60-svg-constants.h.

◆ instagram_v

area svg::constants::instagram_v = { 1080, 1350 }
constexpr

Definition at line 74 of file a60-svg-constants.h.

◆ instagram_s

area svg::constants::instagram_s = { 1080, 1080 }
constexpr

Definition at line 75 of file a60-svg-constants.h.

◆ instagram_4ks

area svg::constants::instagram_4ks = { 2160, 2160 }
constexpr

Definition at line 76 of file a60-svg-constants.h.

◆ v1080p_h

area svg::constants::v1080p_h = { 1920, 1080 }
constexpr

Definition at line 78 of file a60-svg-constants.h.

◆ v1080p_v

area svg::constants::v1080p_v = { 1080, 1920 }
constexpr

Definition at line 79 of file a60-svg-constants.h.

◆ v4k_h

area svg::constants::v4k_h = { 3840, 2160 }
constexpr

Definition at line 81 of file a60-svg-constants.h.

◆ v4k_v

area svg::constants::v4k_v = { 2160, 3840 }
constexpr

Definition at line 82 of file a60-svg-constants.h.

◆ p44x30_h

area svg::constants::p44x30_h = { 4224, 2880 }
constexpr

Fine Art max sheet, aka 44 x 30 (1.47:1 ~ 3:2)

Definition at line 85 of file a60-svg-constants.h.

◆ p30x44_v

area svg::constants::p30x44_v = { 2880, 4224 }
constexpr

Definition at line 86 of file a60-svg-constants.h.

◆ p44x22_h

area svg::constants::p44x22_h = { 4224, 2112 }
constexpr

Fine Art roll, aka 44 x 22 (2:1)

Definition at line 89 of file a60-svg-constants.h.

◆ p22x44_v

area svg::constants::p22x44_v = { 2112, 4224 }
constexpr

Definition at line 90 of file a60-svg-constants.h.

◆ no_style

const style svg::constants::no_style = { color::none, 0.0, color::none, 0.0, 0 }

Style constants.

Definition at line 94 of file a60-svg-constants.h.

◆ b_style

const style svg::constants::b_style = { color::black, 1.0, color::white, 0.0, 0.5 }

Definition at line 95 of file a60-svg-constants.h.

◆ w_style

const style svg::constants::w_style = { color::white, 1.0, color::black, 0.0, 0.5 }

Definition at line 96 of file a60-svg-constants.h.

◆ r_style

const style svg::constants::r_style = { color::red, 1.0, color::red, 0.0, 0.5 }

Definition at line 98 of file a60-svg-constants.h.

◆ wcaglg_style

const style svg::constants::wcaglg_style = { color::wcag_lgray, 1.0, color::wcag_lgray, 0.0, 0.5 }

Definition at line 99 of file a60-svg-constants.h.

◆ wcagg_style

const style svg::constants::wcagg_style = { color::wcag_gray, 1.0, color::wcag_gray, 0.0, 0.5 }

Definition at line 100 of file a60-svg-constants.h.

◆ wcagdg_style

const style svg::constants::wcagdg_style = { color::wcag_dgray, 1.0, color::wcag_dgray, 0.0, 0.5 }

Definition at line 101 of file a60-svg-constants.h.

◆ a

Useful typography constants.

Definition at line 105 of file a60-svg-constants.h.

◆ al

Definition at line 106 of file a60-svg-constants.h.

◆ w

Definition at line 107 of file a60-svg-constants.h.

◆ p

Definition at line 108 of file a60-svg-constants.h.

◆ b

Definition at line 109 of file a60-svg-constants.h.

◆ sserif

const char* svg::constants::sserif = "Source Serif Pro"

Definition at line 111 of file a60-svg-constants.h.

◆ ssans

const char* svg::constants::ssans = "Source Sans Pro"

Definition at line 112 of file a60-svg-constants.h.

◆ smono

const char* svg::constants::smono = "Source Code Pro"

Definition at line 113 of file a60-svg-constants.h.

◆ shsans

const char* svg::constants::shsans = "Source Han Sans CN"

Definition at line 114 of file a60-svg-constants.h.

◆ aprcu

const char* svg::constants::aprcu = "Apercu"

Definition at line 115 of file a60-svg-constants.h.

◆ aprcumo

const char* svg::constants::aprcumo = "Apercu Mono"

Definition at line 116 of file a60-svg-constants.h.

◆ ccode

const char* svg::constants::ccode = "Calling Code"

Definition at line 117 of file a60-svg-constants.h.

◆ zslab

const char* svg::constants::zslab = "Zilla Slab"

Definition at line 118 of file a60-svg-constants.h.

◆ mexcellent

const char* svg::constants::mexcellent = "Mexcellent"

Definition at line 119 of file a60-svg-constants.h.

◆ hyperl

const char* svg::constants::hyperl = "Atkinson Hyperlegible"

Definition at line 120 of file a60-svg-constants.h.

◆ smono_typo

const typography svg::constants::smono_typo = { smono, 12, b_style, a, al, b, w, p }

Definition at line 122 of file a60-svg-constants.h.

◆ sserif_typo

const typography svg::constants::sserif_typo = { sserif, 12, b_style, a, al, b, w, p }

Definition at line 123 of file a60-svg-constants.h.

◆ ssans_typo

const typography svg::constants::ssans_typo = { ssans, 12, b_style, a, al, b, w, p }

Definition at line 124 of file a60-svg-constants.h.

◆ shsans_typo

const typography svg::constants::shsans_typo = { shsans, 12, b_style, a, al, b, w, p }

Definition at line 125 of file a60-svg-constants.h.

◆ apercu_typo

const typography svg::constants::apercu_typo = { aprcu, 12, b_style, a, al, b, w, p }

Definition at line 126 of file a60-svg-constants.h.

◆ apercumo_typo

const typography svg::constants::apercumo_typo = { aprcumo, 12, b_style, a, al, b, w, p }

Definition at line 127 of file a60-svg-constants.h.

◆ ccode_typo

const typography svg::constants::ccode_typo = { ccode, 12, b_style, a, al, b, w, p }

Definition at line 128 of file a60-svg-constants.h.

◆ zslab_typo

const typography svg::constants::zslab_typo = { zslab, 12, b_style, a, al, b, w, p }

Definition at line 129 of file a60-svg-constants.h.

◆ mxcllnt_typo

const typography svg::constants::mxcllnt_typo = { mexcellent, 12, b_style, a, al, b, w, p }

Definition at line 130 of file a60-svg-constants.h.

◆ hyperl_typo

const typography svg::constants::hyperl_typo = { hyperl, 12, b_style, a, al, b, w, p }

Definition at line 131 of file a60-svg-constants.h.