ReadableGump Class Reference

#include <ReadableGump.h>

Inheritance diagram for ReadableGump:

ModalGump Gump Object List of all members.

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 ReadableGump ()
 ReadableGump (ObjId owner, uint16 shape, int font, std::string msg)
virtual ~ReadableGump ()
virtual GumpOnMouseDown (int button, int mx, int my)
virtual void InitGump (Gump *newparent, bool take_focus=true)
 INTRINSIC (I_readGrave)
 INTRINSIC (I_readPlaque)
bool loadData (IDataSource *ids, uint32 version)

Protected Member Functions

virtual void saveData (ODataSource *ods)

Private Attributes

uint16 shapenum
int fontnum
std::string text

Detailed Description

Definition at line 25 of file ReadableGump.h.


Constructor & Destructor Documentation

ReadableGump::ReadableGump (  ) 

Definition at line 42 of file ReadableGump.cpp.

ReadableGump::ReadableGump ( ObjId  owner,
uint16  shape,
int  font,
std::string  msg 
)

Definition at line 48 of file ReadableGump.cpp.

ReadableGump::~ReadableGump (  )  [virtual]

Definition at line 53 of file ReadableGump.cpp.


Member Function Documentation

ReadableGump::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from ModalGump.

void ReadableGump::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 57 of file ReadableGump.cpp.

References Gump::BOTTOM_CENTER, Gump::CENTER, Gump::dims, fontnum, GameInfo::GAMELANG_JAPANESE, CoreApp::get_instance(), GameData::get_instance(), Shape::getFrame(), GameData::getGumps(), ShapeArchive::getShape(), Pentagram::Rect::h, ShapeFrame::height, Gump::InitGump(), ModalGump::InitGump(), jpsub_font, Gump::setRelativePosition(), Gump::SetShape(), Gump::shape, shapenum, text, Pentagram::Font::TEXT_CENTER, Pentagram::Rect::w, and ShapeFrame::width.

Referenced by AvatarDeathProcess::run().

ReadableGump::INTRINSIC ( I_readPlaque   ) 

ReadableGump::INTRINSIC ( I_readGrave   ) 

bool ReadableGump::loadData ( IDataSource ids,
uint32  version 
)

Reimplemented from ModalGump.

Definition at line 131 of file ReadableGump.cpp.

Gump * ReadableGump::OnMouseDown ( int  button,
int  mx,
int  my 
) [virtual]

Reimplemented from ModalGump.

Definition at line 92 of file ReadableGump.cpp.

References ModalGump::Close().

void ReadableGump::saveData ( ODataSource ods  )  [protected, virtual]

save the actual Object data

Reimplemented from ModalGump.

Definition at line 126 of file ReadableGump.cpp.


Member Data Documentation

int ReadableGump::fontnum [private]

Definition at line 28 of file ReadableGump.h.

Referenced by InitGump().

uint16 ReadableGump::shapenum [private]

Definition at line 27 of file ReadableGump.h.

Referenced by InitGump().

std::string ReadableGump::text [private]

Definition at line 29 of file ReadableGump.h.

Referenced by InitGump().


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