Google
Web alhem.net
Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

TextDialog Class Reference

#include <TextDialog.h>

List of all members.

Public Member Functions

 TextDialog (Surface *)
 ~TextDialog ()
void Draw ()
void AddLine (const string &)

Private Attributes

Output m_output
gui::ScrollBarV m_vbar


Constructor & Destructor Documentation

TextDialog::TextDialog Surface *   ) 
 

Definition at line 35 of file TextDialog.cpp.

References H, m_output, m_vbar, TextDialog(), W, X, and Y.

Referenced by TextDialog().

00036 :Dialog(s, X, Y, W, H) 00037 ,m_output(this,5,5, W - SBSIZE - 10, H - 10) 00038 ,m_vbar(this) //, W-SBSIZE, 0, SBSIZE, H) 00039 { 00040 SetText("TextDialog"); 00041 CreateTemporaryScreen(); 00042 00043 SetBgColor(255,255,255); 00044 SetFgColor(0,0,0); 00045 00046 SetMoveable(true); 00047 00048 m_output.SetFrameWidth(0); 00049 // m_output.AddLine("Testing test test..."); 00050 AddChild(&m_output); 00051 AddChild(&m_vbar); 00052 00053 SDL_Rect *area = GetClientRectPtr(); 00054 Uint32 color = GetBgColor(); 00055 00056 SDL_FillRect(m_screen, area, color); 00057 // DrawAll(); 00058 }

TextDialog::~TextDialog  ) 
 

Definition at line 61 of file TextDialog.cpp.

00062 { 00063 }


Member Function Documentation

void TextDialog::AddLine const string &   ) 
 

Definition at line 71 of file TextDialog.cpp.

References AddLine(), and m_output.

Referenced by AddLine().

00072 { 00073 m_output.AddLine(str); 00074 // Output::AddLine invalidates... 00075 // RedrawEv(); 00076 // InvalidateEv(); 00077 }

void TextDialog::Draw  ) 
 

Definition at line 66 of file TextDialog.cpp.

00067 { 00068 }


Member Data Documentation

Output TextDialog::m_output [private]
 

Definition at line 45 of file TextDialog.h.

Referenced by AddLine(), and TextDialog().

gui::ScrollBarV TextDialog::m_vbar [private]
 

Definition at line 46 of file TextDialog.h.

Referenced by TextDialog().


The documentation for this class was generated from the following files:
Generated for SDL C++ GUI by doxygen 1.3.6