Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

OverviewMapPanel Class Reference

#include <overviewmappanel.h>

Inheritance diagram for OverviewMapPanel:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 OverviewMapPanel (PG_Widget *parent, const PG_Rect &r, MapDisplayPG *mapDisplay, const ASCString &widgetName)

Protected Member Functions

void painter (const PG_Rect &src, const ASCString &name, const PG_Rect &dst)
void redraw ()
bool mouseButtonDown (const SDL_MouseButtonEvent *button)
bool mouseMotion (const SDL_MouseMotionEvent *motion)
bool mouseClick (SPoint pos)

Constructor & Destructor Documentation

OverviewMapPanel::OverviewMapPanel PG_Widget parent,
const PG_Rect r,
MapDisplayPG mapDisplay,
const ASCString widgetName
 

Definition at line 27 of file overviewmappanel.cpp.

References assert, SpecialDisplayWidget::display, PG_Widget::FindChild(), OverviewMapHolder::generationComplete, lockMapdisplay, mouseButtonDown(), mouseMotion(), painter(), redraw(), PG_MessageObject::sigMouseButtonDown, PG_MessageObject::sigMouseMotion, unlockMapdisplay, and viewChanged.


Member Function Documentation

bool OverviewMapPanel::mouseButtonDown const SDL_MouseButtonEvent *  button  )  [protected]
 

Definition at line 133 of file overviewmappanel.cpp.

References PG_Widget::IsMouseInside(), mouseClick(), PG_Widget::ScreenToClient(), PG_Point::x, and PG_Point::y.

Referenced by OverviewMapPanel().

bool OverviewMapPanel::mouseClick SPoint  pos  )  [protected]
 

Definition at line 121 of file overviewmappanel.cpp.

References actmap, MapDisplayPG::centerOnField(), OverviewMapImage::surface2map(), MapCoordinate::valid(), MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize.

Referenced by mouseButtonDown(), and mouseMotion().

bool OverviewMapPanel::mouseMotion const SDL_MouseMotionEvent *  motion  )  [protected]
 

Definition at line 144 of file overviewmappanel.cpp.

References PG_Widget::IsMouseInside(), mouseClick(), PG_Widget::ScreenToClient(), PG_Point::x, and PG_Point::y.

Referenced by OverviewMapPanel().

void OverviewMapPanel::painter const PG_Rect src,
const ASCString name,
const PG_Rect dst
[protected]
 

Definition at line 71 of file overviewmappanel.cpp.

References actmap, MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), OverviewMapHolder::getOverviewMap(), PG_Application::GetScreen(), PG_Rect::Height(), PG_Rect::IntersectRect(), MapDisplayPG::lowerRightCorner(), OverviewMapImage::map2surface(), GameMap::overviewMapHolder, screen, MapDisplayPG::upperLeftCorner(), PG_Rect::Width(), and Surface::Wrap().

Referenced by OverviewMapPanel().

void OverviewMapPanel::redraw void   )  [inline, protected]
 

Definition at line 41 of file overviewmappanel.h.

References PG_Widget::Redraw().

Referenced by OverviewMapPanel().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:18:42 2008 for Advanced Strategic Command by  doxygen 1.4.2