C# Class Dwarrowdelf.Client.TileControl.TileControlCore

Inheritance: System.Windows.FrameworkElement, IDisposable
ファイルを表示 Open project: tomba/dwarrowdelf

Public Properties

Property Type Description
MouseClickedEvent System.Windows.RoutedEvent

Public Methods

Method Description
InvalidateTileData ( ) : void

Forces render, resolving the tile data Note: Does NOT invalidate the tile data of RenderView

InvalidateTileRender ( ) : void

Forces render, without resolving the tile data

RenderPointToRenderTile ( Point p ) : Point
RenderTileToRenderPoint ( Point t ) : Point

Protected Methods

Method Description
ArrangeOverride ( Size arrangeBounds ) : Size
OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
OnRenderTiles ( System.Windows.Media.DrawingContext drawingContext, Size renderSize, TileRenderContext ctx ) : void
TileControlCore ( ) : System

Private Methods

Method Description
OnLostMouseCapture ( object sender, System.Windows.Input.MouseEventArgs e ) : void
UpdateGridSize ( Size renderSize, double tileSize ) : bool
UpdateRenderOffset ( Size renderSize, double tileSize ) : void
UpdateTileLayout ( Size renderSize ) : void

Method Details

ArrangeOverride() protected method

protected ArrangeOverride ( Size arrangeBounds ) : Size
arrangeBounds System.Windows.Size
return System.Windows.Size

InvalidateTileData() public method

Forces render, resolving the tile data Note: Does NOT invalidate the tile data of RenderView
public InvalidateTileData ( ) : void
return void

InvalidateTileRender() public method

Forces render, without resolving the tile data
public InvalidateTileRender ( ) : void
return void

OnMouseDown() protected method

protected OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnRender() protected method

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
return void

OnRenderSizeChanged() protected method

protected OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
sizeInfo System.Windows.SizeChangedInfo
return void

OnRenderTiles() protected abstract method

protected abstract OnRenderTiles ( System.Windows.Media.DrawingContext drawingContext, Size renderSize, TileRenderContext ctx ) : void
drawingContext System.Windows.Media.DrawingContext
renderSize System.Windows.Size
ctx TileRenderContext
return void

RenderPointToRenderTile() public method

public RenderPointToRenderTile ( Point p ) : Point
p Point
return Point

RenderTileToRenderPoint() public method

public RenderTileToRenderPoint ( Point t ) : Point
t Point
return Point

TileControlCore() protected method

protected TileControlCore ( ) : System
return System

Property Details

MouseClickedEvent public_oe static_oe property

public static RoutedEvent,System.Windows MouseClickedEvent
return System.Windows.RoutedEvent