30 #ifndef INCLUDED_GUITEXT 31 #define INCLUDED_GUITEXT 93 m_UseCustomColor(false),
94 m_Bold(false), m_Italic(false), m_Underlined(false),
95 m_pSpriteCall(NULL) {}
212 bool SetTagType(
const CStrW& tagtype);
213 TagType GetTagType(
const CStrW& tagtype)
const;
251 static const int Left = 0;
252 static const int Right = 1;
262 std::vector<CStr> m_Images[2];
286 void SetValue(
const CStrW& str);
312 void GenerateTextCall(
const CGUI* pGUI,
SFeedback& Feedback,
CStrIntern DefaultFont,
const int& from,
const int& to,
const bool FirstLine,
const IGUIObject* pObject = NULL)
const;
336 #endif // INCLUDED_GUITEXT A chunk of text that represents one call to the renderer.
Definition: GUItext.h:177
std::wstring value
Definition: GUItext.h:203
int m_CellID
Definition: GUItext.h:74
Made to represent a screen size, should in philosophy be made of unsigned ints, but for the sake of c...
Definition: Shapes.h:207
std::list< SSpriteCall >::pointer m_pSpriteCall
IF an icon, then this is not NULL.
Definition: GUItext.h:136
std::wstring attrib
Definition: GUItext.h:202
bool m_Underlined
Definition: GUItext.h:131
All data generated in GenerateTextCall()
Definition: GUItext.h:248
std::vector< SGUIText::STextCall > m_TextCalls
Text and Sprite Calls.
Definition: GUItext.h:267
std::vector< Tag > m_Tags
Tags that are present.
Definition: GUItext.h:242
CSize m_Size
Width and Height feedback
Definition: GUItext.h:274
CStrW m_TooltipStyle
Tooltip style.
Definition: GUItext.h:84
CRect m_Area
Size and position of sprite.
Definition: GUItext.h:67
SSpriteCall()
Definition: GUItext.h:62
Base settings, all objects possess these settings in their m_BaseSettings Instructions can be found i...
Definition: IGUIObject.h:117
A sprite call to the CRenderer.
Definition: GUItext.h:60
The main object that represents a whole GUI page.
Definition: CGUI.h:75
std::vector< TextChunk > m_TextChunks
TextChunks.
Definition: GUItext.h:323
Definition: GUItext.h:192
Interned 8-bit strings.
Definition: CStrIntern.h:37
bool m_UseCustomColor
Use custom color? If true then m_Color is used, else the color inputted will be used.
Definition: GUItext.h:116
CSize m_Size
Width and height of the whole output, used when setting up scrollbars and such.
Definition: GUItext.h:155
TagType
Tag Type.
Definition: GUItext.h:187
Definition: GUItext.h:195
CPos m_Pos
Position.
Definition: GUItext.h:100
std::vector< STextCall > m_TextCalls
List of TextCalls, for instance "Hello", "there!".
Definition: GUItext.h:142
Definition: GUItext.h:200
CStrW m_String
The string that is suppose to be rendered.
Definition: GUItext.h:110
CColor m_Color
Color setup.
Definition: GUItext.h:121
Made to represent screen positions and delta values.
Definition: Shapes.h:169
Definition: GUItext.h:196
CStrW m_RawString
The full raw string.
Definition: GUItext.h:328
Definition: GUItext.h:193
STextCall()
Definition: GUItext.h:92
std::vector< int > m_Words
Words.
Definition: GUItext.h:317
Definition: GUItext.h:189
std::wstring m_TagValue
In [b="Hello"][/b] m_TagValue is 'Hello'.
Definition: GUItext.h:226
CStrW m_OriginalString
The original string value passed to SetValue.
Definition: GUItext.h:333
Definition: CGUISprite.h:158
std::list< SGUIText::SSpriteCall > m_SpriteCalls
Definition: GUItext.h:268
TagType m_TagType
In [b="Hello"][/b] m_TagType is TAG_B.
Definition: GUItext.h:220
bool m_NewLine
If the word inputted was a new line.
Definition: GUItext.h:279
A tag looks like this "Hello [b]there[/b] little".
Definition: GUItext.h:182
int m_To
Definition: GUItext.h:237
Definition: GUItext.h:194
CStrIntern m_Font
Font name.
Definition: GUItext.h:126
CSize m_Size
Size.
Definition: GUItext.h:105
Definition: GUItext.h:191
std::list< SSpriteCall > m_SpriteCalls
List of sprites, or "icons" that should be rendered along with the text.
Definition: GUItext.h:148
A text call to the CRenderer.
Definition: GUItext.h:90
Definition: GUItext.h:190
CGUISpriteInstance m_Sprite
Sprite from global GUI sprite database.
Definition: GUItext.h:72
const CStrW & GetOriginalString() const
Get String, with tags.
Definition: GUItext.h:291
CStrW m_Tooltip
Tooltip text.
Definition: GUItext.h:79
std::vector< TagAttribute > m_TagAttributes
Some tags need an additional attributes.
Definition: GUItext.h:231
String class, substitute for CStr, but that parses the tags and builds up a list of all text that wil...
Definition: GUItext.h:169
An SGUIText object is a parsed string, divided into text-rendering components.
Definition: GUItext.h:55
Rectangle class used for screen rectangles.
Definition: Shapes.h:73