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

#include <wmcgui.h>

Inheritance diagram for GUIObject:
LinkedList Button Checkbox ImageAnim Text Tree Window

Public Member Functions

 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 OnDraw (float frametime)
 
int OnFrame (float frametime, int *unused_queue)
 
void OnMove (int dx, int dy)
 
void OnRefreshSize ()
 
void OnRefreshSkin ()
 
virtual void DoDraw (float frametime)
 
virtual int DoFrame (float frametime)
 
virtual int DoRefreshSize ()
 
virtual void DoRefreshSkin ()
 
virtual void DoMove (int dx, int dy)
 
virtual int DoMouseOver (float frametime)
 
virtual int DoMouseDown (float frametime)
 
virtual int DoMouseUp (float frametime)
 
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)
 

Friends

class Window
 
class Menu
 
class Text
 
class Tree
 
class Checkbox
 
class Button
 
class ImageAnim
 
class HUDGauge
 
class GUIScreen
 
class GUISystem
 

Additional Inherited Members

- Public Attributes inherited from LinkedList
struct LinkedListnext
 
struct LinkedListprev
 

Detailed Description

Definition at line 211 of file wmcgui.h.

Constructor & Destructor Documentation

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 
)

Definition at line 715 of file wmcgui.cpp.

GUIObject::~GUIObject ( )

Definition at line 757 of file wmcgui.cpp.

Member Function Documentation

GUIObject * GUIObject::AddChild ( GUIObject cgp)

Definition at line 819 of file wmcgui.cpp.

void GUIObject::Delete ( )

Definition at line 853 of file wmcgui.cpp.

void GUIObject::DeleteChildren ( GUIObject exception = NULL)

Definition at line 770 of file wmcgui.cpp.

virtual void GUIObject::DoDraw ( float  frametime)
inlineprotectedvirtual

Reimplemented in ImageAnim, Checkbox, Text, Tree, Button, and Window.

Definition at line 257 of file wmcgui.h.

virtual int GUIObject::DoFrame ( float  frametime)
inlineprotectedvirtual

Definition at line 258 of file wmcgui.h.

virtual int GUIObject::DoKeyPress ( float  frametime)
inlineprotectedvirtual

Reimplemented in Text.

Definition at line 267 of file wmcgui.h.

virtual int GUIObject::DoKeyState ( float  frametime)
inlineprotectedvirtual

Definition at line 266 of file wmcgui.h.

virtual int GUIObject::DoMouseDown ( float  frametime)
inlineprotectedvirtual

Reimplemented in Checkbox, Text, Tree, Button, and Window.

Definition at line 263 of file wmcgui.h.

virtual int GUIObject::DoMouseOut ( float  frametime)
inlineprotectedvirtual

Reimplemented in Checkbox, Button, and Window.

Definition at line 265 of file wmcgui.h.

virtual int GUIObject::DoMouseOver ( float  frametime)
inlineprotectedvirtual

Reimplemented in Checkbox, Tree, and Window.

Definition at line 262 of file wmcgui.h.

virtual int GUIObject::DoMouseUp ( float  frametime)
inlineprotectedvirtual

Reimplemented in Checkbox, Tree, Button, and Window.

Definition at line 264 of file wmcgui.h.

virtual void GUIObject::DoMove ( int  dx,
int  dy 
)
inlineprotectedvirtual

Reimplemented in Checkbox, Tree, and Window.

Definition at line 261 of file wmcgui.h.

virtual int GUIObject::DoRefreshSize ( )
inlineprotectedvirtual

Reimplemented in ImageAnim, Checkbox, Text, Tree, Button, and Window.

Definition at line 259 of file wmcgui.h.

virtual void GUIObject::DoRefreshSkin ( )
inlineprotectedvirtual

Definition at line 260 of file wmcgui.h.

int GUIObject::GetCIECoords ( int  id,
int x,
int y 
)
protected

Definition at line 972 of file wmcgui.cpp.

int GUIObject::GetCIEImageHandle ( int  id,
int  handleid = 0 
)
inlineprotected

Definition at line 275 of file wmcgui.h.

int GUIObject::GetHeight ( )
inline

Definition at line 295 of file wmcgui.h.

int GUIObject::GetWidth ( )
inline

Definition at line 294 of file wmcgui.h.

void GUIObject::OnDraw ( float  frametime)
protected

Definition at line 862 of file wmcgui.cpp.

int GUIObject::OnFrame ( float  frametime,
int unused_queue 
)
protected

Definition at line 874 of file wmcgui.cpp.

void GUIObject::OnMove ( int  dx,
int  dy 
)
protected

Definition at line 954 of file wmcgui.cpp.

void GUIObject::OnRefreshSize ( )
inlineprotected

Definition at line 252 of file wmcgui.h.

void GUIObject::OnRefreshSkin ( )
inlineprotected

Definition at line 253 of file wmcgui.h.

void GUIObject::SetCIPointer ( )
protected

Definition at line 1048 of file wmcgui.cpp.

void GUIObject::SetCloseFunction ( void(*)(GUIObject *caller)  in_closefunc)
inline

Definition at line 291 of file wmcgui.h.

void GUIObject::SetPosition ( int  x,
int  y 
)

Definition at line 1055 of file wmcgui.cpp.

Friends And Related Function Documentation

friend class Button
friend

Definition at line 218 of file wmcgui.h.

friend class Checkbox
friend

Definition at line 217 of file wmcgui.h.

friend class GUIScreen
friend

Definition at line 221 of file wmcgui.h.

friend class GUISystem
friend

Definition at line 222 of file wmcgui.h.

friend class HUDGauge
friend

Definition at line 220 of file wmcgui.h.

friend class ImageAnim
friend

Definition at line 219 of file wmcgui.h.

friend class Menu
friend

Definition at line 214 of file wmcgui.h.

friend class Text
friend

Definition at line 215 of file wmcgui.h.

friend class Tree
friend

Definition at line 216 of file wmcgui.h.

friend class Window
friend

Definition at line 213 of file wmcgui.h.


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