#include <ControlsGump.h>
Inheritance diagram for ControlsGump:
Public Member Functions | |
ENABLE_RUNTIME_CLASSTYPE () | |
ControlsGump () | |
virtual | ~ControlsGump (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 void | ChildNotify (Gump *child, uint32 message) |
void | addEntry (char *binding, char *name, int &x, int &y) |
bool | loadData (IDataSource *ids) |
Static Public Member Functions | |
static void | showEngineMenu (PagedGump *pagedgump) |
static void | showU8Menu (PagedGump *pagedgump) |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
Definition at line 26 of file ControlsGump.h.
ControlsGump::ControlsGump | ( | ) |
ControlsGump::~ControlsGump | ( | void | ) | [virtual] |
Definition at line 127 of file ControlsGump.cpp.
void ControlsGump::addEntry | ( | char * | binding, | |
char * | name, | |||
int & | x, | |||
int & | y | |||
) |
Definition at line 144 of file ControlsGump.cpp.
References Gump::dims, Gump::GetDims(), Pentagram::Rect::h, Gump::InitGump(), and Pentagram::Rect::w.
Referenced by showEngineMenu(), and showU8Menu().
This function is used by our children to notifty us of 'something' Think of it as a generic call back function
Reimplemented from Gump.
Definition at line 153 of file ControlsGump.cpp.
References Gump::children, and BindGump::UPDATE.
ControlsGump::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from Gump.
void ControlsGump::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 Gump.
Definition at line 131 of file ControlsGump.cpp.
References Gump::dims, font, Pentagram::Rect::h, Gump::InitGump(), and Pentagram::Rect::w.
Referenced by showEngineMenu(), and showU8Menu().
bool ControlsGump::loadData | ( | IDataSource * | ids | ) |
Definition at line 217 of file ControlsGump.cpp.
bool ControlsGump::OnKeyDown | ( | int | key, | |
int | mod | |||
) | [virtual] |
void ControlsGump::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 167 of file ControlsGump.cpp.
References Gump::PaintThis().
void ControlsGump::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Object data
Reimplemented from Gump.
Definition at line 222 of file ControlsGump.cpp.
void ControlsGump::showEngineMenu | ( | PagedGump * | pagedgump | ) | [static] |
Definition at line 178 of file ControlsGump.cpp.
References addEntry(), PagedGump::addPage(), ControlsGump(), InitGump(), Gump::x, and Gump::y.
Referenced by OptionsGump::selectEntry().
void ControlsGump::showU8Menu | ( | PagedGump * | pagedgump | ) | [static] |
Definition at line 198 of file ControlsGump.cpp.
References addEntry(), PagedGump::addPage(), ControlsGump(), InitGump(), Gump::x, and Gump::y.
Referenced by OptionsGump::selectEntry().