SVG Paint specification for fill or stroke, including solids and gradients. More...
#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 |
Vec2f | getCoords0 () const |
Vec2f | getCoords1 () const |
float | getRadius () const |
bool | useObjectBoundingBox () const |
bool | specifiesTransform () const |
MatrixAffine2f | 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 |
Vec2f | mCoords0 |
Vec2f | mCoords1 |
float | mRadius |
bool | mUseObjectBoundingBox |
MatrixAffine2f | mTransform |
bool | mSpecifiesTransform |
SVG Paint specification for fill or stroke, including solids and gradients.
cinder::svg::Paint::Paint | ( | uint8_t | type | ) |
cinder::svg::Paint::Paint | ( | const ColorA8u & | color | ) |
Paint cinder::svg::Paint::parse | ( | const char * | value, |
bool * | specified, | ||
const Node * | parentNode | ||
) | [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 |
Vec2f cinder::svg::Paint::getCoords0 | ( | ) | const |
Vec2f cinder::svg::Paint::getCoords1 | ( | ) | const |
float cinder::svg::Paint::getRadius | ( | ) | const |
bool cinder::svg::Paint::useObjectBoundingBox | ( | ) | const |
bool cinder::svg::Paint::specifiesTransform | ( | ) | const |
uint8_t cinder::svg::Paint::mType |
std::vector<std::pair<float,ColorA8u> > cinder::svg::Paint::mStops |