#include <overviewmappanel.h>
Inheritance diagram for OverviewMapPanel:

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) |
Definition at line 32 of file overviewmappanel.h.
| OverviewMapPanel::OverviewMapPanel | ( | PG_Widget * | parent, | |
| const PG_Rect & | r, | |||
| MapDisplayPG * | mapDisplay, | |||
| const ASCString & | widgetName | |||
| ) |
Definition at line 28 of file overviewmappanel.cpp.
References SpecialDisplayWidget::display, OverviewMapHolder::generationComplete, lockMapdisplay, mouseButtonDown(), mouseMotion(), painter(), redraw(), unlockMapdisplay, and viewChanged.
| void OverviewMapPanel::painter | ( | const PG_Rect & | src, | |
| const ASCString & | name, | |||
| const PG_Rect & | dst | |||
| ) | [protected] |
Definition at line 72 of file overviewmappanel.cpp.
References actmap, MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), OverviewMapHolder::getOverviewMap(), MapDisplayPG::lowerRightCorner(), OverviewMapImage::map2surface(), GameMap::overviewMapHolder, screen, MapDisplayPG::upperLeftCorner(), and Surface::Wrap().
Referenced by OverviewMapPanel().
| void OverviewMapPanel::redraw | ( | void | ) | [inline, protected] |
| bool OverviewMapPanel::mouseButtonDown | ( | const SDL_MouseButtonEvent * | button | ) | [protected] |
Definition at line 134 of file overviewmappanel.cpp.
References mouseClick().
Referenced by OverviewMapPanel().
| bool OverviewMapPanel::mouseMotion | ( | const SDL_MouseMotionEvent * | motion | ) | [protected] |
Definition at line 145 of file overviewmappanel.cpp.
References mouseClick().
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().
1.5.1