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

Color quantified as integral RGB components in the range [0,255]. aka like Scalar in OpenCV. More...

#include <a60-svg-color.h>

Public Types

using itype = unsigned short

Public Member Functions

 color_qi ()=default
 color_qi (const color_qi &)=default
color_qioperator= (const color_qi &)=default
 color_qi (itype ra, itype ga, itype ba)
 color_qi (const color e)

Static Public Member Functions

static string to_string (color_qi s)
static color_qi from_string (string s)

Public Attributes

itype r
itype g
itype b

Detailed Description

Color quantified as integral RGB components in the range [0,255]. aka like Scalar in OpenCV.

Definition at line 448 of file a60-svg-color.h.

Member Typedef Documentation

◆ itype

using svg::color_qi::itype = unsigned short

Definition at line 450 of file a60-svg-color.h.

Constructor & Destructor Documentation

◆ color_qi() [1/4]

svg::color_qi::color_qi ( )
default

◆ color_qi() [2/4]

svg::color_qi::color_qi ( const color_qi & )
default
Here is the call graph for this function:

◆ color_qi() [3/4]

svg::color_qi::color_qi ( itype ra,
itype ga,
itype ba )
inline

Definition at line 513 of file a60-svg-color.h.

◆ color_qi() [4/4]

svg::color_qi::color_qi ( const color e)
inline

Definition at line 515 of file a60-svg-color.h.

Here is the call graph for this function:

Member Function Documentation

◆ to_string()

string svg::color_qi::to_string ( color_qi s)
inlinestatic

Definition at line 459 of file a60-svg-color.h.

Here is the call graph for this function:

◆ from_string()

color_qi svg::color_qi::from_string ( string s)
inlinestatic

Definition at line 468 of file a60-svg-color.h.

Here is the call graph for this function:

◆ operator=()

color_qi & svg::color_qi::operator= ( const color_qi & )
default
Here is the call graph for this function:

Member Data Documentation

◆ r

itype svg::color_qi::r

Definition at line 452 of file a60-svg-color.h.

◆ g

itype svg::color_qi::g

Definition at line 453 of file a60-svg-color.h.

◆ b

itype svg::color_qi::b

Definition at line 454 of file a60-svg-color.h.


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