C# Class MineEdit.UIControls.Dial

Inheritance: System.Windows.Forms.UserControl
Mostra file Open project: N3X15/MineEdit Class Usage Examples

Private Properties

Property Type Description
ConvertToAngle double
ConvertToPoint System.Drawing.PointF
Dial_MouseDown void
Dial_MouseMove void
DrawAngle void
DrawNightMarker void
Lerp double

Public Methods

Method Description
Dial ( ) : System

Protected Methods

Method Description
OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
ConvertToAngle ( PointF point, PointF center ) : double
ConvertToPoint ( PointF offset, double angle, double radius ) : PointF
Dial_MouseDown ( object sender, MouseEventArgs e ) : void
Dial_MouseMove ( object sender, MouseEventArgs e ) : void
DrawAngle ( Graphics &g, double ang, Pen c ) : void
DrawNightMarker ( Graphics &g ) : void

Draw a transparent half-ellipse to mark the night side of the dial.

Lerp ( double frac, double a, double b ) : double

Method Details

Dial() public method

public Dial ( ) : System
return System

OnPaint() protected method

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