Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
cinder::svg::Paint Class Reference

SVG Paint specification for fill or stroke, including solids and gradients. More...

#include <Svg.h>

List of all members.

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 ColorA8ugetColor (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

Detailed Description

SVG Paint specification for fill or stroke, including solids and gradients.


Member Enumeration Documentation

anonymous enum
Enumerator:
NONE 
COLOR 
LINEAR_GRADIENT 
RADIAL_GRADIENT 

Constructor & Destructor Documentation

cinder::svg::Paint::Paint ( uint8_t  type)
cinder::svg::Paint::Paint ( const ColorA8u color)

Member Function Documentation

Paint cinder::svg::Paint::parse ( const char *  value,
bool *  specified,
const Node parentNode 
) [static]
const ColorA8u& cinder::svg::Paint::getColor ( size_t  idx = 0) const
float cinder::svg::Paint::getOffset ( size_t  idx) const

Member Data Documentation

std::vector<std::pair<float,ColorA8u> > cinder::svg::Paint::mStops

The documentation for this class was generated from the following files: