FS2_Open
Open source remastering of the Freespace 2 engine
Text Class Reference

#include <wmcgui.h>

Inheritance diagram for Text:
GUIObject LinkedList

Public Member Functions

 Text (const SCP_string &in_name, const SCP_string &in_content, int x_coord, int y_coord, int x_width=-1, int y_width=-1, int in_style=0)
 
void SetText (const SCP_string &in_content)
 
void SetText (int the_int)
 
void SetText (float the_float)
 
void SetSaveLoc (int *ptr, int save_method, int max_value=INT_MAX, int min_value=INT_MIN)
 
void SetSaveLoc (short int *sint_ptr, int save_method, short int max_value=SHRT_MAX, short int min_value=SHRT_MIN)
 
void SetSaveLoc (float *ptr, int save_method, float max_value=INT_MAX, float min_value=INT_MIN)
 
void SetSaveLoc (char *ptr, int save_method, uint max_len=UINT_MAX, uint min_len=0)
 
void SetSaveLoc (ubyte *ptr, int save_method, int max_value=UCHAR_MAX, int min_value=0)
 
void SetSaveStringAlloc (char **ptr, int save_method, int mem_flags, uint max_len=UINT_MAX, uint min_len=0)
 
void AddLine (const SCP_string &in_line)
 
bool Save ()
 
void Load ()
 
- Public Member Functions inherited from GUIObject
 GUIObject (const SCP_string &in_Name="", int x_coord=0, int y_coord=0, int x_width=-1, int y_height=-1, int in_style=0)
 
 ~GUIObject ()
 
void Delete ()
 
GUIObjectAddChild (GUIObject *cgp)
 
void DeleteChildren (GUIObject *exception=NULL)
 
void SetPosition (int x, int y)
 
void SetCloseFunction (void(*in_closefunc)(GUIObject *caller))
 
int GetWidth ()
 
int GetHeight ()
 
- Public Member Functions inherited from LinkedList
 LinkedList ()
 
virtual ~LinkedList ()
 

Protected Member Functions

void DoDraw (float frametime)
 
int DoRefreshSize ()
 
int DoMouseDown (float frametime)
 
int DoKeyPress (float frametime)
 
- Protected Member Functions inherited from GUIObject
void OnDraw (float frametime)
 
int OnFrame (float frametime, int *unused_queue)
 
void OnMove (int dx, int dy)
 
void OnRefreshSize ()
 
void OnRefreshSkin ()
 
virtual int DoFrame (float frametime)
 
virtual void DoRefreshSkin ()
 
virtual void DoMove (int dx, int dy)
 
virtual int DoMouseOver (float frametime)
 
virtual int DoMouseUp (float frametime)
 
virtual int DoMouseOut (float frametime)
 
virtual int DoKeyState (float frametime)
 
void SetCIPointer ()
 
int GetCIEImageHandle (int id, int handleid=0)
 
int GetCIECoords (int id, int *x, int *y)
 

Additional Inherited Members

- Public Attributes inherited from LinkedList
struct LinkedListnext
 
struct LinkedListprev
 

Detailed Description

Definition at line 560 of file wmcgui.h.

Constructor & Destructor Documentation

Text::Text ( const SCP_string in_name,
const SCP_string in_content,
int  x_coord,
int  y_coord,
int  x_width = -1,
int  y_width = -1,
int  in_style = 0 
)

Definition at line 2100 of file wmcgui.cpp.

Member Function Documentation

void Text::AddLine ( const SCP_string in_line)

Definition at line 2132 of file wmcgui.cpp.

void Text::DoDraw ( float  frametime)
protectedvirtual

Reimplemented from GUIObject.

Definition at line 2012 of file wmcgui.cpp.

int Text::DoKeyPress ( float  frametime)
protectedvirtual

Reimplemented from GUIObject.

Definition at line 2038 of file wmcgui.cpp.

int Text::DoMouseDown ( float  frametime)
protectedvirtual

Reimplemented from GUIObject.

Definition at line 1999 of file wmcgui.cpp.

int Text::DoRefreshSize ( )
protectedvirtual

Reimplemented from GUIObject.

Definition at line 1936 of file wmcgui.cpp.

void Text::Load ( )

Definition at line 2316 of file wmcgui.cpp.

bool Text::Save ( )

Definition at line 2258 of file wmcgui.cpp.

void Text::SetSaveLoc ( int ptr,
int  save_method,
int  max_value = INT_MAX,
int  min_value = INT_MIN 
)

Definition at line 2138 of file wmcgui.cpp.

void Text::SetSaveLoc ( short int sint_ptr,
int  save_method,
short int  max_value = SHRT_MAX,
short int  min_value = SHRT_MIN 
)

Definition at line 2157 of file wmcgui.cpp.

void Text::SetSaveLoc ( float ptr,
int  save_method,
float  max_value = INT_MAX,
float  min_value = INT_MIN 
)

Definition at line 2176 of file wmcgui.cpp.

void Text::SetSaveLoc ( char *  ptr,
int  save_method,
uint  max_len = UINT_MAX,
uint  min_len = 0 
)

Definition at line 2195 of file wmcgui.cpp.

void Text::SetSaveLoc ( ubyte ptr,
int  save_method,
int  max_value = UCHAR_MAX,
int  min_value = 0 
)

Definition at line 2239 of file wmcgui.cpp.

void Text::SetSaveStringAlloc ( char **  ptr,
int  save_method,
int  mem_flags,
uint  max_len = UINT_MAX,
uint  min_len = 0 
)

Definition at line 2213 of file wmcgui.cpp.

void Text::SetText ( const SCP_string in_content)

Definition at line 2110 of file wmcgui.cpp.

void Text::SetText ( int  the_int)

Definition at line 2116 of file wmcgui.cpp.

void Text::SetText ( float  the_float)

Definition at line 2124 of file wmcgui.cpp.

Member Data Documentation

char** Text::chpSavePointer

Definition at line 579 of file wmcgui.h.

char* Text::chSavePointer

Definition at line 578 of file wmcgui.h.

float Text::flSaveMax

Definition at line 581 of file wmcgui.h.

float Text::flSaveMin

Definition at line 582 of file wmcgui.h.

float* Text::flSavePointer

Definition at line 577 of file wmcgui.h.

int* Text::iSavePointer

Definition at line 575 of file wmcgui.h.

int Text::SaveMax

Definition at line 581 of file wmcgui.h.

int Text::SaveMin

Definition at line 582 of file wmcgui.h.

short* Text::siSavePointer

Definition at line 574 of file wmcgui.h.

ubyte* Text::ubSavePointer

Definition at line 576 of file wmcgui.h.

uint Text::uSaveMax

Definition at line 581 of file wmcgui.h.

uint Text::uSaveMin

Definition at line 582 of file wmcgui.h.


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