C# 클래스 PhysicalDrag.Box

파일 보기 프로젝트 열기: Clancey/MonoMac.Windows.Form

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
Distance ( PointF A, PointF B ) : float

Distance squared between two points.

RecomputeOutline ( ) : void

메소드 상세

Box() 공개 메소드

public Box ( ) : System
리턴 System

Box() 공개 메소드

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

Box() 공개 메소드

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
리턴 System

Contains() 공개 메소드

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

Drag() 공개 메소드

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

Render() 공개 메소드

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.
리턴 void

Set() 공개 메소드

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
리턴 void