#include <InverterGump.h>
Inheritance diagram for InverterGump:
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 | |
RenderSurface * | buffer |
Definition at line 26 of file InverterGump.h.
InverterGump::~InverterGump | ( | void | ) | [virtual] |
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().
RenderSurface* InverterGump::buffer [protected] |
Definition at line 45 of file InverterGump.h.
Referenced by InverterGump(), PaintChildren(), RenderSurfaceChanged(), and ~InverterGump().