InverterGump Class Reference

#include <InverterGump.h>

Inheritance diagram for InverterGump:

DesktopGump Gump Object List of all members.

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 InverterGump (sint32 x, sint32 y, sint32 width, sint32 height)
virtual ~InverterGump (void)
virtual void Paint (RenderSurface *surf, sint32 lerp_factor, bool scaled)
virtual void PaintChildren (RenderSurface *surf, sint32 lerp_factor, bool scaled)
virtual void ParentToGump (int &px, int &py, PointRoundDir r=ROUND_TOPLEFT)
virtual void GumpToParent (int &gx, int &gy, PointRoundDir r=ROUND_TOPLEFT)
virtual void RenderSurfaceChanged ()

Protected Attributes

RenderSurfacebuffer

Detailed Description

Definition at line 26 of file InverterGump.h.


Constructor & Destructor Documentation

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

Definition at line 28 of file InverterGump.cpp.

References buffer.

InverterGump::~InverterGump ( void   )  [virtual]

Definition at line 34 of file InverterGump.cpp.

References buffer.


Member Function Documentation

InverterGump::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from DesktopGump.

void InverterGump::GumpToParent ( int &  gx,
int &  gy,
PointRoundDir  r = ROUND_TOPLEFT 
) [virtual]

Definition at line 126 of file InverterGump.cpp.

References Gump::dims, GUIApp::get_instance(), Pentagram::Rect::h, Gump::x, Pentagram::Rect::x, Gump::y, and Pentagram::Rect::y.

void InverterGump::Paint ( RenderSurface surf,
sint32  lerp_factor,
bool  scaled 
) [virtual]

Paint the Gump (RenderSurface is relative to parent). Calls PaintThis and PaintChildren

Reimplemented from Gump.

Definition at line 57 of file InverterGump.cpp.

References Gump::IsHidden(), PaintChildren(), and DesktopGump::PaintThis().

void InverterGump::PaintChildren ( RenderSurface surf,
sint32  lerp_factor,
bool  scaled 
) [virtual]

Paint the Gumps Children (RenderSurface is relative to this).

Reimplemented from Gump.

Definition at line 75 of file InverterGump.cpp.

References RenderSurface::Blit(), buffer, RenderSurface::CreateSecondaryRenderSurface(), Gump::dims, GUIApp::get_instance(), getIndex(), GUIApp::getInversion(), getLine(), RenderSurface::GetSurfaceAsTexture(), Pentagram::Rect::h, height, RenderSurface::IsFlipped(), Gump::PaintChildren(), RenderSurface::SetFlipped(), Pentagram::Rect::w, and width.

Referenced by Paint().

void InverterGump::ParentToGump ( int &  px,
int &  py,
PointRoundDir  r = ROUND_TOPLEFT 
) [virtual]

Definition at line 116 of file InverterGump.cpp.

References Gump::dims, GUIApp::get_instance(), Pentagram::Rect::h, Pentagram::Rect::x, Gump::x, Pentagram::Rect::y, and Gump::y.

void InverterGump::RenderSurfaceChanged (  )  [virtual]

Reimplemented from DesktopGump.

Definition at line 135 of file InverterGump.cpp.

References buffer, and DesktopGump::RenderSurfaceChanged().


Member Data Documentation

RenderSurface* InverterGump::buffer [protected]

Definition at line 45 of file InverterGump.h.

Referenced by InverterGump(), PaintChildren(), RenderSurfaceChanged(), and ~InverterGump().


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