32 #ifndef INCLUDED_GUITEXT
33 #define INCLUDED_GUITEXT
322 const int &from,
const int &to,
323 const bool FirstLine,
A chunk of text that represents one call to the renderer.
Made to represent a screen size, should in philosophy be made of unsigned ints, but for the sake of c...
std::list< SSpriteCall >::pointer m_pSpriteCall
IF an icon, then this is not NULL.
All data generated in GenerateTextCall()
std::vector< SGUIText::STextCall > m_TextCalls
Text and Sprite Calls.
std::vector< Tag > m_Tags
Tags that are present.
bool SetTagType(const CStr &tagtype)
Set tag from string.
CSize m_Size
Width and Height feedback
CStrW m_TooltipStyle
Tooltip style.
void GenerateTextCall(SFeedback &Feedback, const CStrW &DefaultFont, const int &from, const int &to, const bool FirstLine, const IGUIObject *pObject=NULL) const
Generate Text Call from specified range.
CRect m_Area
Size and position of sprite.
Base settings, all objects possess these settings in their m_BaseSettings Instructions can be found i...
A sprite call to the CRenderer.
std::vector< TextChunk > m_TextChunks
TextChunks.
const CStrW & GetRawString() const
Get String, without tags.
int m_From
m_From and m_To is the range of the string
std::vector< CStr > m_Images[2]
Image stacks, for left and right floating images.
bool m_UseCustomColor
Use custom color? If true then m_Color is used, else the color inputted will be used.
CSize m_Size
Width and height of the whole output, used when setting up scrollbars and such.
std::vector< STextCall > m_TextCalls
List of TextCalls, for instance "Hello", "there!".
void SetValue(const CStrW &str)
Set the value, the string will automatically be parsed when set.
CStrW m_String
The string that is suppose to be rendered.
CColor m_Color
Color setup.
Made to represent screen positions and delta values.
CStrW m_RawString
The full raw string.
std::vector< int > m_Words
Words.
CStrW m_OriginalString
The original string value passed to SetValue.
std::list< SGUIText::SSpriteCall > m_SpriteCalls
TagType m_TagType
In [B=Hello][/B] m_TagType is TAG_B.
bool m_NewLine
If the word inputted was a new line.
A tag looks like this "Hello [B]there[/B] little".
const wchar_t * DefaultFont
void Reset()
Reset all member data.
std::list< SSpriteCall > m_SpriteCalls
List of sprites, or "icons" that should be rendered along with the text.
A text call to the CRenderer.
std::string m_TagValue
In [B=Hello][/B] m_TagValue is 'Hello'.
CGUISpriteInstance m_Sprite
Sprite from global GUI sprite database.
const CStrW & GetOriginalString() const
Get String, with tags.
CStrW m_Tooltip
Tooltip text.
std::vector< TagAttribute > m_TagAttributes
Some tags need an additional attributes.
String class, substitute for CStr, but that parses the tags and builds up a list of all text that wil...
An SGUIText object is a parsed string, divided into text-rendering components.
Rectangle class used for screen rectangles.