C# Class MapView.View

Inheritance: System.Windows.Forms.Panel
Mostrar archivo Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Public Methods

Method Description
ClearSelection ( ) : void
Copy ( ) : void
Paste ( ) : void
Resize ( ) : void
View ( ) : System

Protected Methods

Method Description
OnMouseDown ( MouseEventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
ConvertCoordsRect ( Point p ) : Point

convert from map coordinates to rectangular coordinates

convertCoordsDiamond ( int xp, int yp, int level ) : Point

convert from screen coordinates to tile coordinates

drawTile ( Graphics g, XCMapTile mt, int x, int y ) : void
drawTileGray ( Graphics g, XCMapTile mt, int x, int y ) : void
mapHeight ( IMap_Base mapFile, HeightChangedEventArgs e ) : void
tileChange ( IMap_Base mapFile, SelectedTileChangedEventArgs e ) : void

Method Details

ClearSelection() public method

public ClearSelection ( ) : void
return void

Copy() public method

public Copy ( ) : void
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseWheel() protected method

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

Paste() public method

public Paste ( ) : void
return void

Resize() public method

public Resize ( ) : void
return void

View() public method

public View ( ) : System
return System