gfx::GuiObject Class Reference

GUI object base class. More...

#include <gfx_gui.hh>

Inheritance diagram for gfx::GuiObject:

gfx::GuiButtonBase gfx::GuiPrint gfx::GuiButton

List of all members.

Public Member Functions

 GuiObject (GuiScreen &screen, fp x, fp y, fnMouseButtonCallback buttonCallback)
virtual ~GuiObject ()
virtual void Draw (void)=0
void SetVisi (bool f)
bool IfVisi (void)
void ToggleVisi (void)
void SetSens (bool f)
void ToggleSens (void)
bool IfSens (void)
void SetVisiSens (bool f)
Vector2 GetPos (void)
void SetPos (const Vector2 &pos)

Protected Member Functions

bool IfHasArea (void)
void SetZeroArea (void)

Protected Attributes

GuiBasemGui
GuiScreenmScreen
eGuiObject mType
bool mVisible
bool mSensitive
fnMouseButtonCallback mMouseButtonCallback
uint mMouseEvent
Vector2 mPos
Rect< fpmRect
Dlink< GuiObject > * mLinkObject

Friends

class GuiBase
class GuiScreen


Detailed Description

GUI object base class.

Constructor & Destructor Documentation

gfx::GuiObject::GuiObject ( GuiScreen screen,
fp  x,
fp  y,
fnMouseButtonCallback  buttonCallback 
)

ctor/dtor.

gfx::GuiObject::~GuiObject (  )  [virtual]


Member Function Documentation

virtual void gfx::GuiObject::Draw ( void   )  [pure virtual]

Implemented in gfx::GuiPrint, and gfx::GuiButton.

void gfx::GuiObject::SetVisi ( bool  f  )  [inline]

bool gfx::GuiObject::IfVisi ( void   )  [inline]

void gfx::GuiObject::ToggleVisi ( void   )  [inline]

void gfx::GuiObject::SetSens ( bool  f  )  [inline]

void gfx::GuiObject::ToggleSens ( void   )  [inline]

bool gfx::GuiObject::IfSens ( void   )  [inline]

void gfx::GuiObject::SetVisiSens ( bool  f  )  [inline]

Vector2 gfx::GuiObject::GetPos ( void   ) 

Set/get object position.

void gfx::GuiObject::SetPos ( const Vector2 pos  ) 

bool gfx::GuiObject::IfHasArea ( void   )  [inline, protected]

void gfx::GuiObject::SetZeroArea ( void   )  [inline, protected]


Friends And Related Function Documentation

friend class GuiBase [friend]

Reimplemented in gfx::GuiPrint, and gfx::GuiButton.

friend class GuiScreen [friend]

Reimplemented in gfx::GuiPrint, and gfx::GuiButton.


Member Data Documentation

GuiBase& gfx::GuiObject::mGui [protected]

GuiScreen& gfx::GuiObject::mScreen [protected]

eGuiObject gfx::GuiObject::mType [protected]

bool gfx::GuiObject::mVisible [protected]

bool gfx::GuiObject::mSensitive [protected]

fnMouseButtonCallback gfx::GuiObject::mMouseButtonCallback [protected]

uint gfx::GuiObject::mMouseEvent [protected]

Vector2 gfx::GuiObject::mPos [protected]

Rect<fp> gfx::GuiObject::mRect [protected]

Dlink<GuiObject>* gfx::GuiObject::mLinkObject [protected]


The documentation for this class was generated from the following files: Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:26 2007