30#ifndef INCLUDED_IGUITEXTOWNER
31#define INCLUDED_IGUITEXTOWNER
Definition: Canvas2D.h:36
String class, substitute for CStr, but that parses the tags and builds up a list of all text that wil...
Definition: CGUIString.h:42
An CGUIText object is a parsed string, divided into text-rendering components.
Definition: CGUIText.h:57
Rectangle class used for screen rectangles.
Definition: Rect.h:31
Definition: Vector2D.h:32
GUI object such as a button or an input-box.
Definition: IGUIObject.h:60
Framework for handling Output text.
Definition: IGUITextOwner.h:53
virtual void SetupText()=0
Setup texts.
std::vector< CGUIText > m_GeneratedTexts
Texts that are generated and ready to be rendered.
Definition: IGUITextOwner.h:111
CGUISimpleSetting< EAlign > m_TextAlign
Definition: IGUITextOwner.h:118
virtual void UpdateCachedSize()
Definition: IGUITextOwner.cpp:79
void CalculateTextPosition(CRect &ObjSize, CVector2D &TextPos, CGUIText &Text)
Calculate the position for the text, based on the alignment.
Definition: IGUITextOwner.cpp:103
virtual void UpdateText()
Regenerate the text in case it is invalid.
Definition: IGUITextOwner.cpp:85
NONCOPYABLE(IGUITextOwner)
virtual ~IGUITextOwner()
Definition: IGUITextOwner.cpp:38
CGUISimpleSetting< EVAlign > m_TextVAlign
Definition: IGUITextOwner.h:119
virtual void HandleMessage(SGUIMessage &Message)
Definition: IGUITextOwner.cpp:55
virtual void DrawText(CCanvas2D &canvas, size_t index, const CGUIColor &color, const CVector2D &pos, const CRect &clipping=CRect())
Draws the Text.
Definition: IGUITextOwner.cpp:94
IGUITextOwner(IGUIObject &pObject)
Definition: IGUITextOwner.cpp:30
IGUIObject & m_pObject
Reference to the IGUIObject.
Definition: IGUITextOwner.h:126
bool m_GeneratedTextsValid
Whether the cached text is currently valid (if not then SetupText will be called by Draw)
Definition: IGUITextOwner.h:106
CGUIText & AddText()
Adds a text object.
Definition: IGUITextOwner.cpp:42
Same as the CColor class, but this one can also parse colors predefined in the GUI page (such as "yel...
Definition: CGUIColor.h:30
Message send to IGUIObject::HandleMessage() in order to give life to Objects manually with a derived ...
Definition: SGUIMessage.h:68