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

MapDisplayPG::Cursor Struct Reference

#include <mapdisplay.h>

List of all members.

Public Member Functions

 Cursor (MapDisplayPG *md)
MapCoordinatepos ()
void goTo (const MapCoordinate &position)
void goTo (const MapCoordinate &cursorPosition, const MapCoordinate &upperLeftScreenCorner)
void intoView ()

Public Attributes

int invisible
MapDisplayPGmapDisplay

Friends

class MapDisplayPG
class PG_MapDisplay


Constructor & Destructor Documentation

MapDisplayPG::Cursor::Cursor MapDisplayPG md  )  [inline]
 

Definition at line 324 of file mapdisplay.h.


Member Function Documentation

void MapDisplayPG::Cursor::goTo const MapCoordinate cursorPosition,
const MapCoordinate upperLeftScreenCorner
 

Definition at line 1671 of file mapdisplay.cpp.

References MapDisplayPG::centerOnField(), MapDisplayPG::dirty, MapDisplayPG::fieldInView(), invisible, mapDisplay, MapDisplayPG::offset, pos(), PG_Widget::Update(), and MapCoordinate::valid().

void MapDisplayPG::Cursor::goTo const MapCoordinate position  ) 
 

Definition at line 1695 of file mapdisplay.cpp.

References MapDisplayPG::centerOnField(), MapDisplayPG::dirty, MapDisplayPG::fieldInView(), invisible, mapDisplay, pos(), and PG_Widget::Update().

Referenced by Maped_MainScreenWidget::clickOnMap(), PG_MapDisplay::cursor_goto(), TargetCoordinateLocator::eventMouseButtonDown(), execaction(), SelectFromMap::listItemClicked(), SelectFromMap::SelectFromMap(), and MapSwitcher::toggle().

void MapDisplayPG::Cursor::intoView  ) 
 

MapCoordinate & MapDisplayPG::Cursor::pos  ) 
 

Definition at line 1399 of file mapdisplay.cpp.

References actmap, and GameMap::getCursor().

Referenced by MapDisplayPG::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), execaction(), and goTo().


Friends And Related Function Documentation

friend class MapDisplayPG [friend]
 

Definition at line 324 of file mapdisplay.h.

friend class PG_MapDisplay [friend]
 

Definition at line 326 of file mapdisplay.h.


Member Data Documentation

int MapDisplayPG::Cursor::invisible
 

Definition at line 322 of file mapdisplay.h.

Referenced by MapDisplayPG::eventBlit(), MapDisplayPG::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), goTo(), and PG_MapDisplay::removeActionCursor().

MapDisplayPG* MapDisplayPG::Cursor::mapDisplay
 

Definition at line 323 of file mapdisplay.h.

Referenced by goTo().


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