C# Class MegaMan.LevelEditor.ScreenDrawingSurface

Inheritance: System.Windows.Forms.PictureBox
Show file Open project: Tesserex/C--MegaMan-Engine Class Usage Examples

Public Methods

Method Description
CreateCursor ( Bitmap bmp, int xHotSpot, int yHotSpot ) : Cursor
EditedWithAction ( HistoryAction action ) : void
GetToolLayerGraphics ( ) : Graphics
ReDrawEntities ( ) : void
ReDrawTiles ( ) : void
RedrawJoins ( ) : void
ReturnToolLayerGraphics ( Graphics g ) : void
ScreenDrawingSurface ( ScreenDocument screen ) : System
SetSelection ( int tx, int ty, int width, int height ) : void
Unfocus ( ) : void
Zoom ( double factor ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnGotFocus ( EventArgs e ) : void
OnLostFocus ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void

Private Methods

Method Description
Animate ( ) : void
BuildLayers ( ) : void
ConvertToGrayscale ( Bitmap original ) : Bitmap
CreateIconIndirect ( IconInfo &icon ) : IntPtr
DrawGray ( ) : void
DrawJoinEnd ( Join join, bool one ) : void
DrawSelectionAnts ( ) : void
GetIconInfo ( IntPtr hIcon, IconInfo &pIconInfo ) : bool
IconLocation ( MouseEventArgs e ) : Point
InitLayer ( Bitmap &layer ) : void
MouseLocation ( MouseEventArgs e ) : Point
ReDrawAll ( ) : void
ReDrawBlocking ( ) : void
ReDrawGrid ( ) : void
ReDrawMaster ( ) : void
RefreshSize ( ) : void
ResizeLayer ( Bitmap &layer ) : void
ResizeLayers ( ) : void
SelectionAnimate ( ) : void

Method Details

CreateCursor() public static method

public static CreateCursor ( Bitmap bmp, int xHotSpot, int yHotSpot ) : Cursor
bmp System.Drawing.Bitmap
xHotSpot int
yHotSpot int
return System.Windows.Forms.Cursor

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EditedWithAction() public method

public EditedWithAction ( HistoryAction action ) : void
action HistoryAction
return void

GetToolLayerGraphics() public method

public GetToolLayerGraphics ( ) : Graphics
return System.Drawing.Graphics

OnGotFocus() protected method

protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs
return void

OnLostFocus() protected method

protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseDown() protected method

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

OnMouseEnter() protected method

protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseLeave() protected method

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
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

ReDrawEntities() public method

public ReDrawEntities ( ) : void
return void

ReDrawTiles() public method

public ReDrawTiles ( ) : void
return void

RedrawJoins() public method

public RedrawJoins ( ) : void
return void

ReturnToolLayerGraphics() public method

public ReturnToolLayerGraphics ( Graphics g ) : void
g System.Drawing.Graphics
return void

ScreenDrawingSurface() public method

public ScreenDrawingSurface ( ScreenDocument screen ) : System
screen ScreenDocument
return System

SetSelection() public method

public SetSelection ( int tx, int ty, int width, int height ) : void
tx int
ty int
width int
height int
return void

Unfocus() public method

public Unfocus ( ) : void
return void

Zoom() public method

public Zoom ( double factor ) : void
factor double
return void