BindGump Class Reference

#include <BindGump.h>

Inheritance diagram for BindGump:

ModalGump Gump Object List of all members.

Public Types

 UPDATE = 10
enum  Message { UPDATE = 10 }

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 BindGump (Pentagram::istring *b, Gump *g)
virtual ~BindGump (void)
virtual void InitGump (Gump *newparent, bool take_focus=true)
virtual void PaintThis (RenderSurface *, sint32 lerp_factor, bool scaled)
virtual bool OnKeyDown (int key, int mod)
virtual GumpOnMouseDown (int button, int mx, int my)
bool loadData (IDataSource *ids)

Protected Member Functions

virtual void saveData (ODataSource *ods)

Protected Attributes

Pentagram::istringbinding
Gumpinvoker

Detailed Description

Definition at line 26 of file BindGump.h.


Member Enumeration Documentation

enum BindGump::Message

Enumerator:
UPDATE 

Definition at line 45 of file BindGump.h.


Constructor & Destructor Documentation

BindGump::BindGump ( Pentagram::istring b,
Gump g 
)

Definition at line 34 of file BindGump.cpp.

BindGump::~BindGump ( void   )  [virtual]

Definition at line 38 of file BindGump.cpp.


Member Function Documentation

BindGump::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from ModalGump.

void BindGump::InitGump ( Gump newparent,
bool  take_focus = true 
) [virtual]

Init the gump and add it to parent; call after construction When newparent is 0, this will call GUIApp::addGump().

Parameters:
newparent The Gump's new parent or 0.
takefocus If true, set parent's focus_child to this

Reimplemented from ModalGump.

Definition at line 42 of file BindGump.cpp.

References Gump::InitGump(), ModalGump::InitGump(), Gump::setRelativePosition(), Pentagram::Font::TEXT_CENTER, and Gump::TOP_CENTER.

bool BindGump::loadData ( IDataSource ids  ) 

Definition at line 94 of file BindGump.cpp.

bool BindGump::OnKeyDown ( int  key,
int  mod 
) [virtual]

Reimplemented from Gump.

Definition at line 63 of file BindGump.cpp.

References binding, Gump::ChildNotify(), ModalGump::Close(), HIDManager::get_instance(), invoker, HIDManager::unbind(), and UPDATE.

Gump * BindGump::OnMouseDown ( int  button,
int  mx,
int  my 
) [virtual]

Reimplemented from ModalGump.

Definition at line 82 of file BindGump.cpp.

References Gump::ChildNotify(), ModalGump::Close(), HIDManager::get_instance(), invoker, and UPDATE.

void BindGump::PaintThis ( RenderSurface ,
sint32  lerp_factor,
bool  scaled 
) [virtual]

Overloadable method to Paint just this Gump (RenderSurface is relative to this).

Reimplemented from Gump.

Definition at line 55 of file BindGump.cpp.

References Gump::dims, RenderSurface::Fill32(), Pentagram::Rect::h, Gump::PaintThis(), and Pentagram::Rect::w.

void BindGump::saveData ( ODataSource ods  )  [protected, virtual]

save the actual Object data

Reimplemented from ModalGump.

Definition at line 100 of file BindGump.cpp.


Member Data Documentation

Pentagram::istring* BindGump::binding [protected]

Definition at line 51 of file BindGump.h.

Referenced by OnKeyDown().

Gump* BindGump::invoker [protected]

Definition at line 52 of file BindGump.h.

Referenced by OnKeyDown(), and OnMouseDown().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:28:45 2007 for pentagram by  doxygen 1.4.7