C# Class PhysicalDrag.Box

Afficher le fichier Open project: Clancey/MonoMac.Windows.Form

Méthodes publiques

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

Méthode Description
Distance ( PointF A, PointF B ) : float

Distance squared between two points.

RecomputeOutline ( ) : void

Method Details

Box() public méthode

public Box ( ) : System
Résultat System

Box() public méthode

public Box ( Point nA, Point nB, Point nC, Point nD ) : System
nA Point
nB Point
nC Point
nD Point
Résultat System

Box() public méthode

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
Résultat System

Contains() public méthode

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

Drag() public méthode

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

Render() public méthode

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.
Résultat void

Set() public méthode

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
Résultat void