ScrollGump Class Reference

#include <ScrollGump.h>

Inheritance diagram for ScrollGump:

ModalGump Gump Object List of all members.

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

Detailed Description

Definition at line 25 of file ScrollGump.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().

Parameters:
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 
)

Reimplemented from ModalGump.

Definition at line 121 of file ScrollGump.cpp.

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]

Reimplemented from Gump.

Definition at line 92 of file ScrollGump.cpp.

References NextText().

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

Returns:
true if repaint required

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.


Member Data Documentation

std::string ScrollGump::text [private]

Definition at line 27 of file ScrollGump.h.

Referenced by InitGump().

ObjId ScrollGump::textwidget [private]

Definition at line 28 of file ScrollGump.h.

Referenced by InitGump(), and NextText().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:53 2007 for pentagram by  doxygen 1.4.7