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(,,)
No description provided
staticgeode::SimpleTextArea*create(,,,)
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_tconstmaxLines
)
No description provided
size_tgetMaxLines()
No description provided
voidsetWidth()
No description provided
floatgetWidth()
No description provided
virtualvoidsetScale()
No description provided
virtualfloatgetScale()
No description provided
voidsetLinePadding(
floatconstpadding
)
No description provided
floatgetLinePadding()
No description provided
intgetLines()
No description provided
floatgetHeight()
No description provided
floatgetLineHeight()
No description provided
Fields0
Protected member functions0
Protected fields0