SVG Style for a node. Corresponds to SVG Styling: http://www.w3.org/TR/SVG/styling.html. More...
#include <Svg.h>
Public Member Functions | |
| Style () | |
| Style (const XmlTree &xml, const Node *parent) | |
| void | clear () |
| Marks all styles as unspecified. | |
| bool | specifiesFill () const |
| void | unspecifyFill () |
| const Paint & | getFill () const |
| void | setFill (const Paint &fill) |
| bool | specifiesStroke () const |
| void | unspecifyStroke () |
| const Paint & | getStroke () const |
| void | setStroke (const Paint &stroke) |
| bool | specifiesOpacity () const |
| void | unspecifyOpacity () |
| float | getOpacity () const |
| void | setOpacity (float opacity) |
| bool | specifiesStrokeOpacity () const |
| void | unspecifyStrokeOpacity () |
| float | getStrokeOpacity () const |
| void | setStrokeOpacity (float strokeOpacity) |
| bool | specifiesFillOpacity () const |
| void | unspecifyFillOpacity () |
| float | getFillOpacity () const |
| void | setFillOpacity (float fillOpacity) |
| bool | specifiesStrokeWidth () const |
| void | unspecifyStrokeWidth () |
| float | getStrokeWidth () const |
| void | setStrokeWidth (float strokeWidth) |
| bool | specifiesFillRule () const |
| void | unspecifyFillRule () |
| FillRule | getFillRule () const |
| void | setFillRule (FillRule fillRule) |
| bool | specifiesLineCap () const |
| void | unspecifyLineCap () |
| LineCap | getLineCap () const |
| void | setLineCap (LineCap lineCap) |
| bool | specifiesLineJoin () const |
| void | unspecifyLineJoin () |
| LineJoin | getLineJoin () const |
| void | setLineJoin (LineJoin lineJoin) |
| bool | specifiesFontFamilies () const |
| void | unspecifyFontFamilies () |
| const std::vector< std::string > & | getFontFamilies () const |
| std::vector< std::string > & | getFontFamilies () |
| void | setFontFamily (const std::string &family) |
| void | setFontFamilies (const std::vector< std::string > &families) |
| bool | specifiesFontSize () const |
| void | unspecifyFontSize () |
| Value | getFontSize () const |
| void | setFontSize (const Value &fontSize) |
| bool | specifiesFontWeight () const |
| void | unspecifyFontWeight () |
| FontWeight | getFontWeight () const |
| void | setFontWeight (FontWeight weight) |
| bool | specifiesVisible () const |
| bool | isVisible () const |
| void | setVisible (bool visible) |
| void | unspecifyVisible () |
| bool | isDisplayNone () const |
| void | setDisplayNone (bool displayNone) |
| void | startRender (Renderer &renderer, bool isNodeDrawable) const |
| void | finishRender (Renderer &renderer, bool isNodeDrawable) const |
| void | parseStyleAttribute (const std::string &stylePropertyString, const Node *parent) |
| bool | parseProperty (const std::string &key, const std::string &value, const Node *parent) |
Static Public Member Functions | |
| static Style | makeGlobalDefaults () |
| Returns a Style set appropriately for global defaults. | |
| static const Paint & | getFillDefault () |
| static const Paint & | getStrokeDefault () |
| static float | getOpacityDefault () |
| static float | getStrokeOpacityDefault () |
| static float | getFillOpacityDefault () |
| static float | getStrokeWidthDefault () |
| static FillRule | getFillRuleDefault () |
| static LineCap | getLineCapDefault () |
| static LineJoin | getLineJoinDefault () |
| static const std::vector < std::string > & | getFontFamiliesDefault () |
| static Value | getFontSizeDefault () |
| static FontWeight | getFontWeightDefault () |
Protected Attributes | |
| bool | mSpecifiesOpacity |
| float | mOpacity |
| bool | mSpecifiesFillOpacity |
| bool | mSpecifiesStrokeOpacity |
| float | mFillOpacity |
| float | mStrokeOpacity |
| bool | mSpecifiesFill |
| bool | mSpecifiesStroke |
| Paint | mFill |
| Paint | mStroke |
| bool | mSpecifiesStrokeWidth |
| float | mStrokeWidth |
| bool | mSpecifiesFillRule |
| FillRule | mFillRule |
| bool | mSpecifiesLineCap |
| LineCap | mLineCap |
| bool | mSpecifiesLineJoin |
| LineJoin | mLineJoin |
| bool | mSpecifiesFontFamilies |
| bool | mSpecifiesFontSize |
| bool | mSpecifiesFontWeight |
| std::vector< std::string > | mFontFamilies |
| Value | mFontSize |
| FontWeight | mFontWeight |
| bool | mSpecifiesVisible |
| bool | mVisible |
| bool | mDisplayNone |
SVG Style for a node. Corresponds to SVG Styling: http://www.w3.org/TR/SVG/styling.html.
| cinder::svg::Style::Style | ( | const XmlTree & | xml, |
| const Node * | parent | ||
| ) |
| Style cinder::svg::Style::makeGlobalDefaults | ( | ) | [static] |
Returns a Style set appropriately for global defaults.
| void cinder::svg::Style::clear | ( | ) |
Marks all styles as unspecified.
| bool cinder::svg::Style::specifiesFill | ( | ) | const |
| void cinder::svg::Style::unspecifyFill | ( | ) |
| const Paint& cinder::svg::Style::getFill | ( | ) | const |
| void cinder::svg::Style::setFill | ( | const Paint & | fill | ) |
| static const Paint& cinder::svg::Style::getFillDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesStroke | ( | ) | const |
| void cinder::svg::Style::unspecifyStroke | ( | ) |
| const Paint& cinder::svg::Style::getStroke | ( | ) | const |
| void cinder::svg::Style::setStroke | ( | const Paint & | stroke | ) |
| static const Paint& cinder::svg::Style::getStrokeDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesOpacity | ( | ) | const |
| void cinder::svg::Style::unspecifyOpacity | ( | ) |
| float cinder::svg::Style::getOpacity | ( | ) | const |
| void cinder::svg::Style::setOpacity | ( | float | opacity | ) |
| static float cinder::svg::Style::getOpacityDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesStrokeOpacity | ( | ) | const |
| float cinder::svg::Style::getStrokeOpacity | ( | ) | const |
| void cinder::svg::Style::setStrokeOpacity | ( | float | strokeOpacity | ) |
| static float cinder::svg::Style::getStrokeOpacityDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesFillOpacity | ( | ) | const |
| float cinder::svg::Style::getFillOpacity | ( | ) | const |
| void cinder::svg::Style::setFillOpacity | ( | float | fillOpacity | ) |
| static float cinder::svg::Style::getFillOpacityDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesStrokeWidth | ( | ) | const |
| float cinder::svg::Style::getStrokeWidth | ( | ) | const |
| void cinder::svg::Style::setStrokeWidth | ( | float | strokeWidth | ) |
| static float cinder::svg::Style::getStrokeWidthDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesFillRule | ( | ) | const |
| FillRule cinder::svg::Style::getFillRule | ( | ) | const |
| void cinder::svg::Style::setFillRule | ( | FillRule | fillRule | ) |
| static FillRule cinder::svg::Style::getFillRuleDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesLineCap | ( | ) | const |
| void cinder::svg::Style::unspecifyLineCap | ( | ) |
| LineCap cinder::svg::Style::getLineCap | ( | ) | const |
| void cinder::svg::Style::setLineCap | ( | LineCap | lineCap | ) |
| static LineCap cinder::svg::Style::getLineCapDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesLineJoin | ( | ) | const |
| LineJoin cinder::svg::Style::getLineJoin | ( | ) | const |
| void cinder::svg::Style::setLineJoin | ( | LineJoin | lineJoin | ) |
| static LineJoin cinder::svg::Style::getLineJoinDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesFontFamilies | ( | ) | const |
| const std::vector<std::string>& cinder::svg::Style::getFontFamilies | ( | ) | const |
| std::vector<std::string>& cinder::svg::Style::getFontFamilies | ( | ) |
| void cinder::svg::Style::setFontFamily | ( | const std::string & | family | ) |
| void cinder::svg::Style::setFontFamilies | ( | const std::vector< std::string > & | families | ) |
| const std::vector< std::string > & cinder::svg::Style::getFontFamiliesDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesFontSize | ( | ) | const |
| Value cinder::svg::Style::getFontSize | ( | ) | const |
| void cinder::svg::Style::setFontSize | ( | const Value & | fontSize | ) |
| static Value cinder::svg::Style::getFontSizeDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesFontWeight | ( | ) | const |
| FontWeight cinder::svg::Style::getFontWeight | ( | ) | const |
| void cinder::svg::Style::setFontWeight | ( | FontWeight | weight | ) |
| static FontWeight cinder::svg::Style::getFontWeightDefault | ( | ) | [static] |
| bool cinder::svg::Style::specifiesVisible | ( | ) | const |
| bool cinder::svg::Style::isVisible | ( | ) | const |
| void cinder::svg::Style::setVisible | ( | bool | visible | ) |
| void cinder::svg::Style::unspecifyVisible | ( | ) |
| bool cinder::svg::Style::isDisplayNone | ( | ) | const |
| void cinder::svg::Style::setDisplayNone | ( | bool | displayNone | ) |
| void cinder::svg::Style::startRender | ( | Renderer & | renderer, |
| bool | isNodeDrawable | ||
| ) | const |
| void cinder::svg::Style::finishRender | ( | Renderer & | renderer, |
| bool | isNodeDrawable | ||
| ) | const |
| void cinder::svg::Style::parseStyleAttribute | ( | const std::string & | stylePropertyString, |
| const Node * | parent | ||
| ) |
| bool cinder::svg::Style::parseProperty | ( | const std::string & | key, |
| const std::string & | value, | ||
| const Node * | parent | ||
| ) |
bool cinder::svg::Style::mSpecifiesOpacity [protected] |
float cinder::svg::Style::mOpacity [protected] |
bool cinder::svg::Style::mSpecifiesFillOpacity [protected] |
bool cinder::svg::Style::mSpecifiesStrokeOpacity [protected] |
float cinder::svg::Style::mFillOpacity [protected] |
float cinder::svg::Style::mStrokeOpacity [protected] |
bool cinder::svg::Style::mSpecifiesFill [protected] |
bool cinder::svg::Style::mSpecifiesStroke [protected] |
Paint cinder::svg::Style::mFill [protected] |
Paint cinder::svg::Style::mStroke [protected] |
bool cinder::svg::Style::mSpecifiesStrokeWidth [protected] |
float cinder::svg::Style::mStrokeWidth [protected] |
bool cinder::svg::Style::mSpecifiesFillRule [protected] |
FillRule cinder::svg::Style::mFillRule [protected] |
bool cinder::svg::Style::mSpecifiesLineCap [protected] |
LineCap cinder::svg::Style::mLineCap [protected] |
bool cinder::svg::Style::mSpecifiesLineJoin [protected] |
LineJoin cinder::svg::Style::mLineJoin [protected] |
bool cinder::svg::Style::mSpecifiesFontFamilies [protected] |
bool cinder::svg::Style::mSpecifiesFontSize [protected] |
bool cinder::svg::Style::mSpecifiesFontWeight [protected] |
std::vector<std::string> cinder::svg::Style::mFontFamilies [protected] |
Value cinder::svg::Style::mFontSize [protected] |
FontWeight cinder::svg::Style::mFontWeight [protected] |
bool cinder::svg::Style::mSpecifiesVisible [protected] |
bool cinder::svg::Style::mVisible [protected] |
bool cinder::svg::Style::mDisplayNone [protected] |