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
Afficher le fichier Open project: nano-byte/common Class Usage Examples

Méthodes publiques

Méthode Description
AngleControl ( ) : System

Méthodes protégées

Méthode Description
OnMouseDown ( MouseEventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void

Private Methods

Méthode 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 méthode

public AngleControl ( ) : System
Résultat System

OnMouseDown() protected méthode

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void