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