#include <ScrollGump.h>
Inheritance diagram for ScrollGump:

Public Member Functions | |
| ENABLE_RUNTIME_CLASSTYPE () | |
| ScrollGump () | |
| ScrollGump (ObjId owner, std::string msg) | |
| virtual | ~ScrollGump () |
| virtual bool | Run (const uint32 framenum) |
| virtual void | OnMouseClick (int button, int mx, int my) |
| virtual void | OnMouseDouble (int button, int mx, int my) |
| virtual void | InitGump (Gump *newparent, bool take_focus=true) |
| INTRINSIC (I_readScroll) | |
| bool | loadData (IDataSource *ids, uint32 version) |
Protected Member Functions | |
| void | NextText () |
| virtual void | saveData (ODataSource *ods) |
Private Attributes | |
| std::string | text |
| ObjId | textwidget |
Definition at line 25 of file ScrollGump.h.
| ScrollGump::ScrollGump | ( | ) |
Definition at line 39 of file ScrollGump.cpp.
| ScrollGump::ScrollGump | ( | ObjId | owner, | |
| std::string | msg | |||
| ) |
Definition at line 45 of file ScrollGump.cpp.
| ScrollGump::~ScrollGump | ( | ) | [virtual] |
Definition at line 50 of file ScrollGump.cpp.
| ScrollGump::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from ModalGump.
| void ScrollGump::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 54 of file ScrollGump.cpp.
References Gump::dims, GameData::get_instance(), Shape::getFrame(), GameData::getGumps(), Object::getObjId(), ShapeArchive::getShape(), Pentagram::Rect::h, ShapeFrame::height, Gump::InitGump(), ModalGump::InitGump(), Gump::SetShape(), Gump::shape, text, textwidget, Pentagram::Rect::w, and ShapeFrame::width.
| ScrollGump::INTRINSIC | ( | I_readScroll | ) |
| bool ScrollGump::loadData | ( | IDataSource * | ids, | |
| uint32 | version | |||
| ) |
| void ScrollGump::NextText | ( | ) | [protected] |
Definition at line 76 of file ScrollGump.cpp.
References ModalGump::Close(), getGump(), TextWidget::setupNextText(), and textwidget.
Referenced by OnMouseClick().
| void ScrollGump::OnMouseClick | ( | int | button, | |
| int | mx, | |||
| int | my | |||
| ) | [virtual] |
| void ScrollGump::OnMouseDouble | ( | int | button, | |
| int | mx, | |||
| int | my | |||
| ) | [virtual] |
Reimplemented from Gump.
Definition at line 98 of file ScrollGump.cpp.
References ModalGump::Close().
| bool ScrollGump::Run | ( | const uint32 | framenum | ) | [virtual] |
Run the gump
Reimplemented from Gump.
Definition at line 85 of file ScrollGump.cpp.
References Gump::Run().
| void ScrollGump::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Object data
Reimplemented from ModalGump.
Definition at line 116 of file ScrollGump.cpp.
std::string ScrollGump::text [private] |
ObjId ScrollGump::textwidget [private] |
1.4.7