![]() |
Cinder
0.9.1
|
#include <Svg.h>
Public Types | |
enum | { NONE, COLOR, LINEAR_GRADIENT, RADIAL_GRADIENT } |
Public Member Functions | |
Paint () | |
Paint (uint8_t type) | |
Paint (const ColorA8u &color) | |
bool | isNone () const |
bool | isLinearGradient () const |
bool | isRadialGradient () const |
const ColorA8u & | getColor (size_t idx=0) const |
float | getOffset (size_t idx) const |
size_t | getNumColors () const |
vec2 | getCoords0 () const |
vec2 | getCoords1 () const |
float | getRadius () const |
bool | useObjectBoundingBox () const |
bool | specifiesTransform () const |
mat3 | getTransform () const |
Static Public Member Functions | |
static Paint | parse (const char *value, bool *specified, const Node *parentNode) |
Public Attributes | |
uint8_t | mType |
std::vector< std::pair< float, ColorA8u > > | mStops |
vec2 | mCoords0 |
vec2 | mCoords1 |
float | mRadius |
bool | mUseObjectBoundingBox |
mat3 | mTransform |
bool | mSpecifiesTransform |
SVG Paint specification for fill or stroke, including solids and gradients.
cinder::svg::Paint::Paint | ( | ) |
cinder::svg::Paint::Paint | ( | uint8_t | type | ) |
cinder::svg::Paint::Paint | ( | const ColorA8u & | color | ) |
|
static |
bool cinder::svg::Paint::isNone | ( | ) | const |
bool cinder::svg::Paint::isLinearGradient | ( | ) | const |
bool cinder::svg::Paint::isRadialGradient | ( | ) | const |
const ColorA8u& cinder::svg::Paint::getColor | ( | size_t | idx = 0 | ) | const |
float cinder::svg::Paint::getOffset | ( | size_t | idx | ) | const |
size_t cinder::svg::Paint::getNumColors | ( | ) | const |
vec2 cinder::svg::Paint::getCoords0 | ( | ) | const |
vec2 cinder::svg::Paint::getCoords1 | ( | ) | const |
float cinder::svg::Paint::getRadius | ( | ) | const |
bool cinder::svg::Paint::useObjectBoundingBox | ( | ) | const |
bool cinder::svg::Paint::specifiesTransform | ( | ) | const |
mat3 cinder::svg::Paint::getTransform | ( | ) | const |
uint8_t cinder::svg::Paint::mType |
std::vector<std::pair<float,ColorA8u> > cinder::svg::Paint::mStops |
vec2 cinder::svg::Paint::mCoords0 |
vec2 cinder::svg::Paint::mCoords1 |
float cinder::svg::Paint::mRadius |
bool cinder::svg::Paint::mUseObjectBoundingBox |
mat3 cinder::svg::Paint::mTransform |
bool cinder::svg::Paint::mSpecifiesTransform |