SVG Style for a node. Corresponds to SVG Styling: http://www.w3.org/TR/SVG/styling.html .


Public Member Functions

  • Style ()
  • Style (const XmlTree &xml, const Node *parent)
  • bool
    specifiesFill () const
  • unspecifyFill ()
  • const Paint &
    getFill () const
  • setFill (const Paint &fill)
  • bool
    specifiesStroke () const
  • unspecifyStroke ()
  • const Paint &
    getStroke () const
  • setStroke (const Paint &stroke)
  • bool
    specifiesOpacity () const
  • unspecifyOpacity ()
  • float
    getOpacity () const
  • setOpacity (float opacity)
  • bool
    specifiesStrokeOpacity () const
  • unspecifyStrokeOpacity ()
  • float
    getStrokeOpacity () const
  • setStrokeOpacity (float strokeOpacity)
  • bool
    specifiesFillOpacity () const
  • unspecifyFillOpacity ()
  • float
    getFillOpacity () const
  • setFillOpacity (float fillOpacity)
  • bool
    specifiesStrokeWidth () const
  • unspecifyStrokeWidth ()
  • float
    getStrokeWidth () const
  • setStrokeWidth (float strokeWidth)
  • bool
    specifiesFillRule () const
  • unspecifyFillRule ()
  • getFillRule () const
  • setFillRule (FillRule fillRule)
  • bool
    specifiesLineCap () const
  • unspecifyLineCap ()
  • getLineCap () const
  • setLineCap (LineCap lineCap)
  • bool
    specifiesLineJoin () const
  • unspecifyLineJoin ()
  • getLineJoin () const
  • setLineJoin (LineJoin lineJoin)
  • bool
    specifiesFontFamilies () const
  • unspecifyFontFamilies ()
  • const std::vector< std::string > &
    getFontFamilies () const
  • std::vector< std::string > &
    getFontFamilies ()
  • setFontFamily (const std::string &family)
  • setFontFamilies (const std::vector< std::string > &families)
  • bool
    specifiesFontSize () const
  • unspecifyFontSize ()
  • getFontSize () const
  • setFontSize (const Value &fontSize)
  • bool
    specifiesFontWeight () const
  • unspecifyFontWeight ()
  • getFontWeight () const
  • setFontWeight (FontWeight weight)
  • bool
    specifiesVisible () const
  • bool
    isVisible () const
  • setVisible (bool visible)
  • unspecifyVisible ()
  • bool
    isDisplayNone () const
  • setDisplayNone (bool displayNone)
  • startRender (Renderer &renderer, bool isNodeDrawable) const
  • finishRender (Renderer &renderer, bool isNodeDrawable) const
  • 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

  • const Paint &
    getFillDefault ()
  • const Paint &
    getStrokeDefault ()
  • float
    getOpacityDefault ()
  • float
    getStrokeOpacityDefault ()
  • float
    getFillOpacityDefault ()
  • float
    getStrokeWidthDefault ()
  • getFillRuleDefault ()
  • getLineCapDefault ()
  • getLineJoinDefault ()
  • const std::vector< std::string > &
    getFontFamiliesDefault ()
  • getFontSizeDefault ()
  • getFontWeightDefault ()

Protected Attributes

  • bool
    mSpecifiesOpacity
  • float
    mOpacity
  • bool
    mSpecifiesFillOpacity
  • bool
    mSpecifiesStrokeOpacity
  • float
    mFillOpacity
  • float
    mStrokeOpacity
  • bool
    mSpecifiesFill
  • bool
    mSpecifiesStroke
  • mFill
  • mStroke
  • bool
    mSpecifiesStrokeWidth
  • float
    mStrokeWidth
  • bool
    mSpecifiesFillRule
  • mFillRule
  • bool
    mSpecifiesLineCap
  • mLineCap
  • bool
    mSpecifiesLineJoin
  • mLineJoin
  • bool
    mSpecifiesFontFamilies
  • bool
    mSpecifiesFontSize
  • bool
    mSpecifiesFontWeight
  • std::vector< std::string >
    mFontFamilies
  • mFontSize
  • mFontWeight
  • bool
    mSpecifiesVisible
  • bool
    mVisible
  • bool
    mDisplayNone