TextSpan /

#includecinder/svg/Svg.h

Public Member Functions

  • TextSpan (Node *parent, const XmlTree &xml)
  • TextSpan (Node *parent, const std::string &spanString)
  • const std::string &
    getString () const
  • void
    setString (const std::string &s)
  • const std::shared_ptr< Font >
    getFont () const
  • vec2
    getTextPen () const
  • void
    setTextPen (const vec2 &textPen)
  • float
    getRotation () const
  • getLetterSpacing () const
  • std::vector< TextSpanRef > &
    getSpans ()
  • const std::vector< TextSpanRef > &
    getSpans () const

Protected Member Functions

  • void
    renderSelf (Renderer &renderer) const
  • bool
    isDrawable () const
  • void
    startRender (Renderer &renderer, const Style &style) const
  • void
    finishRender (Renderer &renderer, const Style &style) const
  • calcBoundingBox () const
  • void
    parseStyle (const std::string &value)
  • parsePaint (const char *value, bool *specified, const Node *parentNode)
  • mat3
    parseTransform (const std::string &value)
  • bool
    parseTransformComponent (const char **c, mat3 *result)
  • std::string
    findStyleValue (const std::string &styleString, const std::string &key)

Protected Attributes

  • bool
    mIgnoreAttributes
  • mAttributes
  • std::string
    mString
  • std::shared_ptr< Font >
    mFont
  • std::shared_ptr< std::vector< std::pair< uint16_t, vec2 > > >
    mGlyphMeasures
  • std::shared_ptr< Shape2d >
    mShape
  • std::vector< TextSpanRef >
    mSpans
  • mParent
  • std::string
    mId
  • mStyle
  • bool
    mSpecifiesTransform
  • mat3
    mTransform
  • bool
    mBoundingBoxCached
  • mBoundingBox

Friends