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

#include <wmcgui.h>

Inheritance diagram for Tree:
GUIObject LinkedList

Public Member Functions

 Tree (const SCP_string &in_name, int x_coord, int y_coord, void *in_associateditem=NULL, int x_width=-1, int y_width=-1, int in_style=0)
 
TreeItemAddItem (TreeItem *parent, const SCP_string &in_name, int in_data=0, bool in_delete_data=true, void(*in_function)(Tree *caller)=NULL)
 
void ClearItems ()
 
TreeItemGetSelectedItem ()
 
- 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)
 
void DoMove (int dx, int dy)
 
int DoRefreshSize ()
 
int DoMouseOver (float frametime)
 
int DoMouseDown (float frametime)
 
int DoMouseUp (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 int DoMouseOut (float frametime)
 
virtual int DoKeyState (float frametime)
 
virtual int DoKeyPress (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 509 of file wmcgui.h.

Constructor & Destructor Documentation

Tree::Tree ( const SCP_string in_name,
int  x_coord,
int  y_coord,
void in_associateditem = NULL,
int  x_width = -1,
int  y_width = -1,
int  in_style = 0 
)

Definition at line 1779 of file wmcgui.cpp.

Member Function Documentation

TreeItem * Tree::AddItem ( TreeItem parent,
const SCP_string in_name,
int  in_data = 0,
bool  in_delete_data = true,
void(*)(Tree *caller)  in_function = NULL 
)

Definition at line 1902 of file wmcgui.cpp.

void Tree::ClearItems ( )

Definition at line 1923 of file wmcgui.cpp.

void Tree::DoDraw ( float  frametime)
protectedvirtual

Reimplemented from GUIObject.

Definition at line 1812 of file wmcgui.cpp.

int Tree::DoMouseDown ( float  frametime)
protectedvirtual

Reimplemented from GUIObject.

Definition at line 1857 of file wmcgui.cpp.

int Tree::DoMouseOver ( float  frametime)
protectedvirtual

Reimplemented from GUIObject.

Definition at line 1851 of file wmcgui.cpp.

int Tree::DoMouseUp ( float  frametime)
protectedvirtual

Reimplemented from GUIObject.

Definition at line 1863 of file wmcgui.cpp.

void Tree::DoMove ( int  dx,
int  dy 
)
protectedvirtual

Reimplemented from GUIObject.

Definition at line 1897 of file wmcgui.cpp.

int Tree::DoRefreshSize ( )
protectedvirtual

Reimplemented from GUIObject.

Definition at line 1754 of file wmcgui.cpp.

TreeItem* Tree::GetSelectedItem ( )
inline

Definition at line 536 of file wmcgui.h.


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