SlidingWidget Class Reference

#include <SlidingWidget.h>

Inheritance diagram for SlidingWidget:

Gump Object List of all members.

Public Member Functions

 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)

Detailed Description

Definition at line 24 of file SlidingWidget.h.

Constructor & Destructor Documentation

SlidingWidget::SlidingWidget (  ) 

Definition at line 28 of file SlidingWidget.cpp.

SlidingWidget::SlidingWidget ( int  x,
int  y,
Shape shape,
uint32  framenum 

Definition at line 33 of file SlidingWidget.cpp.

References Gump::framenum, and Gump::shape.

SlidingWidget::~SlidingWidget (  )  [virtual]

Definition at line 40 of file SlidingWidget.cpp.

Member Function Documentation


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

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