#include <OptionsGump.h>
Inheritance diagram for OptionsGump:
Public Member Functions | |
ENABLE_RUNTIME_CLASSTYPE () | |
OptionsGump () | |
virtual | ~OptionsGump (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) |
bool | loadData (IDataSource *ids) |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
virtual void | selectEntry (int entry) |
Definition at line 24 of file OptionsGump.h.
OptionsGump::OptionsGump | ( | ) |
Definition at line 38 of file OptionsGump.cpp.
OptionsGump::~OptionsGump | ( | void | ) | [virtual] |
Definition at line 42 of file OptionsGump.cpp.
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 84 of file OptionsGump.cpp.
References ButtonWidget::BUTTON_CLICK, Gump::GetIndex(), and selectEntry().
OptionsGump::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from Gump.
void OptionsGump::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 46 of file OptionsGump.cpp.
References Gump::dims, font, Pentagram::Rect::h, Gump::InitGump(), Gump::SetIndex(), Pentagram::Rect::w, Gump::x, and Gump::y.
Referenced by MenuGump::selectEntry().
bool OptionsGump::loadData | ( | IDataSource * | ids | ) |
Definition at line 150 of file OptionsGump.cpp.
bool OptionsGump::OnKeyDown | ( | int | key, | |
int | mod | |||
) | [virtual] |
Reimplemented from Gump.
Definition at line 99 of file OptionsGump.cpp.
References Gump::Close(), Gump::parent, and selectEntry().
void OptionsGump::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 92 of file OptionsGump.cpp.
References Gump::PaintThis().
void OptionsGump::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Object data
Reimplemented from Gump.
Definition at line 155 of file OptionsGump.cpp.
void OptionsGump::selectEntry | ( | int | entry | ) | [protected, virtual] |
Definition at line 114 of file OptionsGump.cpp.
References Gump::CENTER, gumpShape, PagedGump::InitGump(), Gump::setRelativePosition(), ControlsGump::showEngineMenu(), and ControlsGump::showU8Menu().
Referenced by ChildNotify(), and OnKeyDown().