C# Class CrossUI.Drawing.BoundsTrackingDrawingTarget

Inheritance: IGeometryFigures, IDrawingElements, IReportingTarget, ITextMeasurements, IDrawingTargetBitmap
显示文件 Open project: pragmatrix/CrossUI Class Usage Examples

Public Methods

Method Description
Arc ( Rectangle rectangle, double start, double stop ) : void
Bezier ( CubicBezier bezier ) : void
Create ( IDrawingBackend backend, BoundsTracker boundsTracker ) : IDrawingTarget
Ellipse ( Rectangle rectangle ) : void
Geometry ( IGeometry geometry ) : void
Line ( Point p1, Point p2 ) : void
MeasureText ( string text, double maxWidth = Double.PositiveInfinity, double maxHeight = Double.PositiveInfinity ) : TextSize
Polygon ( Point points ) : void
Rectangle ( Rectangle rectangle ) : void
Report ( string text ) : void
RoundedRectangle ( Rectangle rectangle, Size cornerRadius ) : void
Text ( string text, Rectangle rectangle ) : void

Private Methods

Method Description
BoundsTrackingDrawingTarget ( BoundsTracker tracker ) : System

Method Details

Arc() public method

public Arc ( Rectangle rectangle, double start, double stop ) : void
rectangle Rectangle
start double
stop double
return void

Bezier() public method

public Bezier ( CubicBezier bezier ) : void
bezier CubicBezier
return void

Create() public static method

public static Create ( IDrawingBackend backend, BoundsTracker boundsTracker ) : IDrawingTarget
backend IDrawingBackend
boundsTracker BoundsTracker
return IDrawingTarget

Ellipse() public method

public Ellipse ( Rectangle rectangle ) : void
rectangle Rectangle
return void

Geometry() public method

public Geometry ( IGeometry geometry ) : void
geometry IGeometry
return void

Line() public method

public Line ( Point p1, Point p2 ) : void
p1 Point
p2 Point
return void

MeasureText() public method

public MeasureText ( string text, double maxWidth = Double.PositiveInfinity, double maxHeight = Double.PositiveInfinity ) : TextSize
text string
maxWidth double
maxHeight double
return TextSize

Polygon() public method

public Polygon ( Point points ) : void
points Point
return void

Rectangle() public method

public Rectangle ( Rectangle rectangle ) : void
rectangle Rectangle
return void

Report() public method

public Report ( string text ) : void
text string
return void

RoundedRectangle() public method

public RoundedRectangle ( Rectangle rectangle, Size cornerRadius ) : void
rectangle Rectangle
cornerRadius Size
return void

Text() public method

public Text ( string text, Rectangle rectangle ) : void
text string
rectangle Rectangle
return void