C# Class PhysicalDrag.Box

Mostra file Open project: Clancey/MonoMac.Windows.Form

Public Methods

Method Description
Box ( ) : System
Box ( Point nA, Point nB, Point nC, Point nD ) : System
Box ( PointF nA, PointF nB, PointF nC, PointF nD ) : System
Contains ( Point pt ) : bool

Test for inclusion of a point.

Drag ( Point from, Point to ) : void

Perform a single drag operation.

Render ( Graphics G, Color bg, Color fg ) : void

Render the object in a Graphics context.

Set ( PointF nA, PointF nB, PointF nC, PointF nD ) : void

Override all corners.

Private Methods

Method Description
Distance ( PointF A, PointF B ) : float

Distance squared between two points.

RecomputeOutline ( ) : void

Method Details

Box() public method

public Box ( ) : System
return System

Box() public method

public Box ( Point nA, Point nB, Point nC, Point nD ) : System
nA Point
nB Point
nC Point
nD Point
return System

Box() public method

public Box ( PointF nA, PointF nB, PointF nC, PointF nD ) : System
nA System.Drawing.PointF
nB System.Drawing.PointF
nC System.Drawing.PointF
nD System.Drawing.PointF
return System

Contains() public method

Test for inclusion of a point.
public Contains ( Point pt ) : bool
pt Point Point to test
return bool

Drag() public method

Perform a single drag operation.
public Drag ( Point from, Point to ) : void
from Point From point.
to Point To point
return void

Render() public method

Render the object in a Graphics context.
public Render ( Graphics G, Color bg, Color fg ) : void
G System.Drawing.Graphics Graphics object to draw with.
bg Color Background color.
fg Color Outline color.
return void

Set() public method

Override all corners.
public Set ( PointF nA, PointF nB, PointF nC, PointF nD ) : void
nA System.Drawing.PointF
nB System.Drawing.PointF
nC System.Drawing.PointF
nD System.Drawing.PointF
return void