C# Class NanoByte.Common.Controls.AngleControl

Allows the input of angles between 0 and 360 degrees by clicking in a circle.
Inheritance: System.Windows.Forms.UserControl
ファイルを表示 Open project: nano-byte/common Class Usage Examples

Public Methods

Method Description
AngleControl ( ) : System

Protected Methods

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

Private Methods

Method Description
GetAngle ( Point p1, Point p2 ) : float

Calculates the angle of a vector pointing from p1 to p2.

UpdateAngle ( Point location ) : void

Method Details

AngleControl() public method

public AngleControl ( ) : System
return System

OnMouseDown() protected method

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

OnMouseMove() protected method

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

OnPaint() protected method

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