Class SimpleTextArea

#include <Geode/ui/TextArea.hpp>
classSimpleTextArea:publiccocos2d::CCNode{ ... }

A class which provides a textarea with proper alignment and some extra features like:

  • Max lines
  • Changing all aspects after creation
  • Custom text alignment
  • Configurable and automatic word wrapping
  • Line padding

Contact me on Discord (\

Examples0
Public static methods2
staticgeode::SimpleTextArea*create(,,
floatscale
)
No description provided
staticgeode::SimpleTextArea*create(,,
floatscale
,
floatwidth
)
No description provided
Public member functions21
voidsetFont()
No description provided
std::stringgetFont()
No description provided
voidsetColor()
No description provided
cocos2d::ccColor4BgetColor()
No description provided
voidsetAlignment()
No description provided
cocos2d::CCTextAlignmentgetAlignment()
No description provided
voidsetWrappingMode()
No description provided
geode::WrappingModegetWrappingMode()
No description provided
voidsetText()
No description provided
std::stringgetText()
No description provided
voidsetMaxLines(
_::size_tmaxLines
)
No description provided
_::size_tgetMaxLines()
No description provided
voidsetWidth(
floatwidth
)
No description provided
floatgetWidth()
No description provided
virtualvoidsetScale(
floatscale
)
No description provided
virtualfloatgetScale()
No description provided
voidsetLinePadding(
floatpadding
)
No description provided
floatgetLinePadding()
No description provided
std::vector<cocos2d::CCLabelBMFont*>getLines()
No description provided
floatgetHeight()
No description provided
floatgetLineHeight()
No description provided
Fields0
Protected member functions0
Protected fields0