31 GUITextNode::GUITextNode(
39 const string& backgroundImage,
41 const GUIColor& backgroundImageEffectColorMul,
42 const GUIColor& backgroundImageEffectColorAdd,
47 const string& tooltip,
53 GUINode(screenNode, parentNode, id, flow, alignments, requestedConstraints, backgroundColor, backgroundImage, backgroundImageScale9Grid, backgroundImageEffectColorMul, backgroundImageEffectColorAdd, border, padding, showOn, hideOn, tooltip)
58 if (this->font !=
nullptr) this->font->initialize();
98 if (
font !=
nullptr) {
GUI element node conditions.
virtual void render(GUIRenderer *guiRenderer)
Render.
GUINode_ComputedConstraints computedConstraints
GUIScreenNode * screenNode
bool shouldRender()
Returns if to render.
virtual void dispose()
Dispose node.
GUI parent node base class thats supporting child nodes.
GUI screen node that represents a screen that can be rendered via GUI system.
void invalidateLayout(GUINode *node)
Mark a node to be invalidated regarding layout.
GUIFont * getFont(const string &fileName, int size)
Get font.
const string getNodeType() override
void dispose() override
Dispose node.
int getContentWidth() override
int getContentHeight() override
void setText(const MutableString &text)
Set text.
void render(GUIRenderer *guiRenderer) override
Render.
bool isContentNode() override
void drawString(GUIRenderer *guiRenderer, int x, int y, const MutableString &text, int offset, int length, const GUIColor &color, int selectionStartIndex=-1, int selectionEndIndex=-1, const GUIColor &backgroundColor=GUIColor::GUICOLOR_TRANSPARENT)
Draw string.
int getTextWidth(const MutableString &text)
Text width.
Mutable utf8 aware string class.
bool equals(const string &s2) const
Equals.
MutableString & set(char c)
Set character.
std::exception Exception
Exception base class.
GUI node computed constraints.
GUI node requested constraints entity.
GUI node scale 9 grid entity.