#include <SlidingWidget.h>
Inheritance diagram for SlidingWidget:
Public Member Functions | |
ENABLE_RUNTIME_CLASSTYPE () | |
SlidingWidget () | |
SlidingWidget (int x, int y, Shape *shape, uint32 framenum) | |
virtual | ~SlidingWidget () |
virtual void | InitGump (Gump *newparent, bool take_focus=true) |
virtual uint16 | TraceObjId (int mx, int my) |
bool | loadData (IDataSource *ids, uint32 version) |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
Definition at line 24 of file SlidingWidget.h.
SlidingWidget::SlidingWidget | ( | ) |
Definition at line 28 of file SlidingWidget.cpp.
SlidingWidget::~SlidingWidget | ( | ) | [virtual] |
Definition at line 40 of file SlidingWidget.cpp.
SlidingWidget::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from Gump.
void SlidingWidget::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 44 of file SlidingWidget.cpp.
References Gump::dims, Gump::framenum, Shape::getFrame(), Pentagram::Rect::h, ShapeFrame::height, Gump::InitGump(), Gump::shape, Pentagram::Rect::w, and ShapeFrame::width.
bool SlidingWidget::loadData | ( | IDataSource * | ids, | |
uint32 | version | |||
) |
Reimplemented from Gump.
Definition at line 68 of file SlidingWidget.cpp.
References Gump::loadData().
void SlidingWidget::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Object data
Reimplemented from Gump.
Definition at line 63 of file SlidingWidget.cpp.
References Gump::saveData().
uint16 SlidingWidget::TraceObjId | ( | int | mx, | |
int | my | |||
) | [virtual] |
Trace a click, and return ObjId.
Reimplemented from Gump.
Definition at line 55 of file SlidingWidget.cpp.
References Object::getObjId(), and Gump::PointOnGump().