Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Attributes | List of all members
SGUIText Struct Reference

An SGUIText object is a parsed string, divided into text-rendering components. More...

#include <GUItext.h>

Classes

struct  SSpriteCall
 A sprite call to the CRenderer. More...
 
struct  STextCall
 A text call to the CRenderer. More...
 

Public Attributes

std::vector< STextCallm_TextCalls
 List of TextCalls, for instance "Hello", "there!". More...
 
std::list< SSpriteCallm_SpriteCalls
 List of sprites, or "icons" that should be rendered along with the text. More...
 
CSize m_Size
 Width and height of the whole output, used when setting up scrollbars and such. More...
 

Detailed Description

An SGUIText object is a parsed string, divided into text-rendering components.

Each component, being a call to the Renderer. For instance, if you by tags change the color, then the GUI will have to make individual calls saying it want that color on the text.

For instance: "Hello [b]there[/b] bunny!"

That without word-wrapping would mean 3 components. i.e. 3 calls to CRenderer. One drawing "Hello", one drawing "there" in bold, and one drawing "bunny!".

Definition at line 62 of file GUItext.h.

Member Data Documentation

CSize SGUIText::m_Size

Width and height of the whole output, used when setting up scrollbars and such.

Definition at line 162 of file GUItext.h.

std::list<SSpriteCall> SGUIText::m_SpriteCalls

List of sprites, or "icons" that should be rendered along with the text.

Definition at line 155 of file GUItext.h.

std::vector<STextCall> SGUIText::m_TextCalls

List of TextCalls, for instance "Hello", "there!".

Definition at line 149 of file GUItext.h.


The documentation for this struct was generated from the following file: