TargetGump Class Reference

#include <TargetGump.h>

Inheritance diagram for TargetGump:

ModalGump Gump Object List of all members.

Public Member Functions

 TargetGump ()
 TargetGump (int x, int y)
virtual ~TargetGump (void)
virtual bool PointOnGump (int mx, int my)
virtual void InitGump (Gump *newparent, bool take_focus=true)
virtual void Close (bool no_del=false)
virtual void PaintThis (RenderSurface *surf, sint32 lerp_factor, bool scaled)
virtual void OnMouseUp (int button, int mx, int my)
 INTRINSIC (I_target)
bool loadData (IDataSource *ids, uint32 version)

Protected Member Functions

virtual void saveData (ODataSource *ods)

Private Attributes

bool target_tracing

Detailed Description

Definition at line 27 of file TargetGump.h.

Constructor & Destructor Documentation

TargetGump::TargetGump (  ) 

Definition at line 32 of file TargetGump.cpp.

TargetGump::TargetGump ( int  x,
int  y 

Definition at line 38 of file TargetGump.cpp.

TargetGump::~TargetGump ( void   )  [virtual]

Definition at line 44 of file TargetGump.cpp.

Member Function Documentation

void TargetGump::Close ( bool  no_del = false  )  [virtual]

Close the gump

no_del If true, do not delete after closing

Reimplemented from ModalGump.

Definition at line 66 of file TargetGump.cpp.

References ModalGump::Close(), GUIApp::get_instance(), and GUIApp::popMouseCursor().

Referenced by OnMouseUp().


Reimplemented from ModalGump.

void TargetGump::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 TargetGump.cpp.

References Gump::CreateNotifier(), GUIApp::get_instance(), ModalGump::InitGump(), GUIApp::MOUSE_TARGET, GUIApp::pushMouseCursor(), and GUIApp::setMouseCursor().

Referenced by GrantPeaceProcess::run().

TargetGump::INTRINSIC ( I_target   ) 

bool TargetGump::loadData ( IDataSource ids,
uint32  version 

Reimplemented from ModalGump.

Definition at line 120 of file TargetGump.cpp.

void TargetGump::OnMouseUp ( int  button,
int  mx,
int  my 
) [virtual]

Reimplemented from Gump.

Definition at line 83 of file TargetGump.cpp.

References Close(), Item::dumpInfo(), getItem(), Gump::GumpToScreenSpace(), Object::objid, Gump::parent, pout, Gump::process_result, target_tracing, and Gump::TraceObjId().

void TargetGump::PaintThis ( RenderSurface surf,
sint32  lerp_factor,
bool  scaled 
) [virtual]

Overloadable method to Paint just this Gump (RenderSurface is relative to this).

Reimplemented from Gump.

Definition at line 49 of file TargetGump.cpp.

bool TargetGump::PointOnGump ( int  mx,
int  my 
) [virtual]

Detect if a point is on the gump.

Reimplemented from ModalGump.

Definition at line 74 of file TargetGump.cpp.

References ModalGump::PointOnGump(), and target_tracing.

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

save the actual Object data

Reimplemented from ModalGump.

Definition at line 115 of file TargetGump.cpp.

Member Data Documentation

bool TargetGump::target_tracing [private]

Definition at line 50 of file TargetGump.h.

Referenced by OnMouseUp(), and PointOnGump().

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