gfx::GuiButton Class Reference

Button class. More...

#include <gfx_gui_opengl.hh>

Inheritance diagram for gfx::GuiButton:

gfx::GuiButtonBase gfx::GuiObject

List of all members.

Private Types

typedef GuiButtonBase Parent

Private Member Functions

 GuiButton (GuiScreen &screen, fp x, fp y, eFontMode fontMode, fnMouseButtonCallback callback)
 ~GuiButton ()
void Draw (void)
void ResetRGBA (void)

Private Attributes

Refresh mRefresh
 determines if recomputing rectangle is needed
Font::PrintArgs mPrintArgs
 associated with button text

Friends

class Gui
class GuiBase
class GuiScreen
class Refresh

Classes

class  Refresh
 State to determine when button's rectangle needs recomputing. This class is an optimization to bypass recomputing rectangle. More...


Detailed Description

Button class.

Applications instead should use Gui::NewButton() and Gui::DeleteButton().


Member Typedef Documentation

typedef GuiButtonBase gfx::GuiButton::Parent [private]

Reimplemented from gfx::GuiButtonBase.


Constructor & Destructor Documentation

gfx::GuiButton::GuiButton ( GuiScreen screen,
fp  x,
fp  y,
eFontMode  fontMode,
fnMouseButtonCallback  callback 
) [private]

ctor/dtor. Button (x,y) is scaled to account for overdraw from button's rectangle.

gfx::GuiButton::~GuiButton (  )  [private]


Member Function Documentation

void gfx::GuiButton::Draw ( void   )  [private, virtual]

Draw this button.

Implements gfx::GuiObject.

void gfx::GuiButton::ResetRGBA ( void   )  [private, virtual]

Reset button color.

Implements gfx::GuiButtonBase.


Friends And Related Function Documentation

friend class Gui [friend]

friend class GuiBase [friend]

Reimplemented from gfx::GuiObject.

friend class GuiScreen [friend]

Reimplemented from gfx::GuiObject.

friend class Refresh [friend]


Member Data Documentation

Refresh gfx::GuiButton::mRefresh [private]

determines if recomputing rectangle is needed

Font::PrintArgs gfx::GuiButton::mPrintArgs [private]

associated with button text


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:27 2007