OpenMortal Apocalypse mirror
Sourceforge mirror
SourceForge.net Logo
      News | Info | Characters | Arenas | Screenshots | Forums | Download  
Developer: Making of | Character-HOWTO | AI Design | Submit a Character
Documentation: Main Page | Modules | Class Hierarchy | Class List | File List

CTextArea Class Reference
[Sound and graphics]

CTextArea displays scrolling text. More...

#include <TextArea.h>

List of all members.

Public Member Functions

 CTextArea (SDL_Surface *a_poScreen, _sge_TTFont *a_poFont, int a_x, int a_y, int a_w, int a_h)
 ~CTextArea ()
void TintBackground (int a_iColor, int a_iAlpha)
void AddString (const char *a_poText, int a_iColor)
void Redraw ()
void Clear ()
void ScrollUp ()
void ScrollDown ()

Protected Attributes

SDL_Surface * m_poScreen
SDL_Surface * m_poBackground
_sge_TTFont * m_poFont
SDL_Rect m_oClipRect
int x
int y
int w
int h
int m_iScrollOffset
TStringList m_asRowTexts
TIntList m_aiRowColors


Detailed Description

CTextArea displays scrolling text.


Constructor & Destructor Documentation

CTextArea::CTextArea SDL_Surface *  a_poScreen,
_sge_TTFont *  a_poFont,
int  a_x,
int  a_y,
int  a_w,
int  a_h
 

CTextArea::~CTextArea  ) 
 


Member Function Documentation

void CTextArea::AddString const char *  a_poText,
int  a_iColor
 

void CTextArea::Clear  ) 
 

void CTextArea::Redraw  ) 
 

void CTextArea::ScrollDown  ) 
 

void CTextArea::ScrollUp  ) 
 

void CTextArea::TintBackground int  a_iColor,
int  a_iAlpha
 


Member Data Documentation

int CTextArea::h [protected]
 

TIntList CTextArea::m_aiRowColors [protected]
 

TStringList CTextArea::m_asRowTexts [protected]
 

int CTextArea::m_iScrollOffset [protected]
 

SDL_Rect CTextArea::m_oClipRect [protected]
 

SDL_Surface* CTextArea::m_poBackground [protected]
 

_sge_TTFont* CTextArea::m_poFont [protected]
 

SDL_Surface* CTextArea::m_poScreen [protected]
 

int CTextArea::w [protected]
 

int CTextArea::x [protected]
 

int CTextArea::y [protected]
 


The documentation for this class was generated from the following files: