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
  • 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 ()
  • getFillRule () const
  • void
    setFillRule (FillRule fillRule)
  • bool
    specifiesLineCap () const
  • void
    unspecifyLineCap ()
  • getLineCap () const
  • void
    setLineCap (LineCap lineCap)
  • bool
    specifiesLineJoin () const
  • void
    unspecifyLineJoin ()
  • 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 ()
  • getFontSize () const
  • void
    setFontSize (const Value &fontSize)
  • bool
    specifiesFontWeight () const
  • void
    unspecifyFontWeight ()
  • 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

  • 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