virtual void SetupText()=0
Setup texts.
virtual void UpdateCachedSize()
virtual bool MouseOverIcon()
Test if mouse position is over an icon.
void CalculateTextPosition(CRect &ObjSize, CPos &TextPos, SGUIText &Text)
Calculate the position for the text, based on the alignment.
Framework for handling Output text.
virtual void HandleMessage(SGUIMessage &Message)
virtual void DrawText(int index, const CColor &color, const CPos &pos, float z, const CRect &clipping=CRect())
Draws the Text.
std::vector< SGUIText * > m_GeneratedTexts
Texts that are generated and ready to be rendered.
void AddText(SGUIText *text)
Adds a text object.
bool m_GeneratedTextsValid
Whether the cached text is currently valid (if not then SetupText will be called by Draw) ...
An SGUIText object is a parsed string, divided into text-rendering components.