C# Class PurplePen.DotGrid

Datei anzeigen Open project: petergolde/PurplePen

Public Properties

Property Type Description
clientSize Size
dots List>
dotsAcross int
pixelsPerDot int

Public Methods

Method Description
Clear ( ) : void
DotGrid ( ) : System
DrawDot ( Graphics g, int row, int col ) : void
DrawDot ( int row, int col ) : void
DrawGrid ( Graphics g ) : void
EraseDot ( Graphics g, int row, int col ) : void
EraseDot ( int row, int col ) : void
GetAllDots ( ) : ].bool[
GetDot ( int row, int col ) : bool
ResizeTo ( int newDotsAcross, int newDotsDown ) : void
SetAllDots ( bool dotValues ) : void
SetDot ( int row, int col, bool dotValue ) : void
UpdateGridSize ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
DotGrid_MouseDown ( object sender, MouseEventArgs e ) : void
DotGrid_Paint ( object sender, PaintEventArgs e ) : void
DotGrid_Resize ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Method Details

Clear() public method

public Clear ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

DotGrid() public method

public DotGrid ( ) : System
return System

DrawDot() public method

public DrawDot ( Graphics g, int row, int col ) : void
g Graphics
row int
col int
return void

DrawDot() public method

public DrawDot ( int row, int col ) : void
row int
col int
return void

DrawGrid() public method

public DrawGrid ( Graphics g ) : void
g Graphics
return void

EraseDot() public method

public EraseDot ( Graphics g, int row, int col ) : void
g Graphics
row int
col int
return void

EraseDot() public method

public EraseDot ( int row, int col ) : void
row int
col int
return void

GetAllDots() public method

public GetAllDots ( ) : ].bool[
return ].bool[

GetDot() public method

public GetDot ( int row, int col ) : bool
row int
col int
return bool

ResizeTo() public method

public ResizeTo ( int newDotsAcross, int newDotsDown ) : void
newDotsAcross int
newDotsDown int
return void

SetAllDots() public method

public SetAllDots ( bool dotValues ) : void
dotValues bool
return void

SetDot() public method

public SetDot ( int row, int col, bool dotValue ) : void
row int
col int
dotValue bool
return void

UpdateGridSize() public method

public UpdateGridSize ( ) : void
return void

Property Details

clientSize public_oe property

public Size clientSize
return Size

dots public_oe property

public List> dots
return List>

dotsAcross public_oe property

public int dotsAcross
return int

pixelsPerDot public_oe property

public int pixelsPerDot
return int