Pyrogenesis  trunk
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>

Collaboration diagram for SGUIText:
Collaboration graph
[legend]

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!".

Member Data Documentation

CSize SGUIText::m_Size

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

std::list<SSpriteCall> SGUIText::m_SpriteCalls

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

std::vector<STextCall> SGUIText::m_TextCalls

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


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