DesktopGump Class Reference

#include <DesktopGump.h>

Inheritance diagram for DesktopGump:

Gump Object InverterGump ScalerGump List of all members.

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 DesktopGump ()
 DesktopGump (sint32 x, sint32 y, sint32 width, sint32 height)
virtual ~DesktopGump (void)
virtual void PaintThis (RenderSurface *surf, sint32 lerp_factor, bool scaled)
virtual bool StartDraggingChild (Gump *gump, int mx, int my)
virtual void DraggingChild (Gump *gump, int mx, int my)
virtual void StopDraggingChild (Gump *gump)
bool loadData (IDataSource *ids, uint32 version)
void RenderSurfaceChanged (RenderSurface *surf)

Protected Member Functions

virtual void saveData (ODataSource *ods)
virtual void RenderSurfaceChanged ()

Detailed Description

Definition at line 24 of file DesktopGump.h.


Constructor & Destructor Documentation

DesktopGump::DesktopGump (  ) 

Definition at line 29 of file DesktopGump.cpp.

DesktopGump::DesktopGump ( sint32  x,
sint32  y,
sint32  width,
sint32  height 
)

Definition at line 34 of file DesktopGump.cpp.

DesktopGump::~DesktopGump ( void   )  [virtual]

Definition at line 40 of file DesktopGump.cpp.


Member Function Documentation

void DesktopGump::DraggingChild ( Gump gump,
int  mx,
int  my 
) [virtual]

Reimplemented from Gump.

Definition at line 64 of file DesktopGump.cpp.

References GUIApp::get_instance(), GUIApp::getDraggingOffset(), and Gump::Move().

DesktopGump::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from Gump.

Reimplemented in InverterGump, and ScalerGump.

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

Reimplemented from Gump.

Definition at line 103 of file DesktopGump.cpp.

void DesktopGump::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 44 of file DesktopGump.cpp.

References Gump::children, ConsoleGump::ConsoleIsVisible(), Gump::dims, RenderSurface::Fill32(), GUIApp::get_instance(), GUIApp::getConsoleGump(), Pentagram::Rect::h, and Pentagram::Rect::w.

Referenced by InverterGump::Paint().

void DesktopGump::RenderSurfaceChanged (  )  [protected, virtual]

Reimplemented from Gump.

Reimplemented in InverterGump, and ScalerGump.

Definition at line 87 of file DesktopGump.cpp.

References Gump::dims, Gump::GetDims(), Pentagram::Rect::h, Gump::parent, Gump::RenderSurfaceChanged(), and Pentagram::Rect::w.

Referenced by InverterGump::RenderSurfaceChanged().

void DesktopGump::RenderSurfaceChanged ( RenderSurface surf  ) 

Definition at line 76 of file DesktopGump.cpp.

References Gump::dims, RenderSurface::GetSurfaceDims(), Pentagram::Rect::h, Gump::RenderSurfaceChanged(), and Pentagram::Rect::w.

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

save the actual Object data

Reimplemented from Gump.

Definition at line 98 of file DesktopGump.cpp.

bool DesktopGump::StartDraggingChild ( Gump gump,
int  mx,
int  my 
) [virtual]

Called when a child gump starts to be dragged.

Returns:
false if the child isn't allowed to be dragged.

Reimplemented from Gump.

Definition at line 56 of file DesktopGump.cpp.

References GUIApp::get_instance(), Gump::MoveChildToFront(), Gump::ParentToGump(), and GUIApp::setDraggingOffset().

void DesktopGump::StopDraggingChild ( Gump gump  )  [virtual]

Reimplemented from Gump.

Definition at line 71 of file DesktopGump.cpp.


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