#include <BindGump.h>
Inheritance diagram for BindGump:
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 Gump * | OnMouseDown (int button, int mx, int my) |
bool | loadData (IDataSource *ids) |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
Protected Attributes | |
Pentagram::istring * | binding |
Gump * | invoker |
Definition at line 26 of file BindGump.h.
enum BindGump::Message |
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.
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().
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.
Pentagram::istring* BindGump::binding [protected] |
Gump* BindGump::invoker [protected] |