Enums


Public Member Functions

  • TextBox ()
  • size (ivec2 sz)
  • size (int width, int height)
  • ivec2
    getSize () const
  • void
    setSize (ivec2 sz)
  • text (const std::string &t)
  • const std::string &
    getText () const
  • void
    setText (const std::string &t)
  • void
    appendText (const std::string &t)
  • font (const Font &f)
  • const Font &
    getFont () const
  • void
    setFont (const Font &f)
  • alignment (Alignment align)
  • getAlignment () const
  • void
    setAlignment (Alignment align)
  • color (ColorA color)
  • getColor () const
  • void
    setColor (ColorA color)
  • backgroundColor (ColorA bgColor)
  • getBackgroundColor () const
  • void
    setBackgroundColor (ColorA bgColor)
  • premultiplied (bool premult=true)
  • bool
    getPremultiplied () const
  • void
    setPremultiplied (bool premult)
  • ligate (bool ligateText=true)
  • bool
    getLigate () const
  • void
    setLigate (bool ligateText)
  • vec2
    measure () const
  • render (vec2 offset=vec2())

Protected Member Functions

  • void
    createLines () const

Protected Attributes

  • mAlign
  • ivec2
    mSize
  • std::string
    mText
  • mFont
  • mColor
  • mBackgroundColor
  • bool
    mPremultiplied
  • bool
    mLigate
  • bool
    mInvalid
  • vec2
    mCalculatedSize
  • std::vector< std::pair< std::shared_ptr< const __CTLine >, vec2 > >
    mLines