C# Class CrossUI.SharpDX.Drawing.DrawingTarget

ファイルを表示 Open project: pragmatrix/CrossUI Class Usage Examples

Private Properties

Property Type Description
createBrush SolidColorBrush
createPath PathGeometry
createTextFormat SharpDX.DirectWrite.TextFormat
createTextLayout SharpDX.DirectWrite.TextLayout
drawClosedPath void
drawOpenPath void
fillPath void
fillRect RectangleF
requireWriteFactory SharpDX.DirectWrite.Factory
strokeAlignedRect RectangleF
transformChanged void

Public Methods

Method Description
Arc ( CrossUI.Drawing.Rectangle rectangle, double start, double stop ) : void
Bezier ( CubicBezier bezier ) : void
Dispose ( ) : void
DrawingTarget ( DrawingState state, DrawingTransform transform, RenderTarget target, int width, int height ) : System
Ellipse ( CrossUI.Drawing.Rectangle rectangle ) : void
Geometry ( IGeometry geometry ) : void
Line ( Point p1, Point p2 ) : void
MeasureText ( string text, double layoutWidth, double layoutHeight ) : TextSize
Polygon ( Point points ) : void
Rectangle ( CrossUI.Drawing.Rectangle rectangle ) : void
Report ( string text ) : void
RoundedRectangle ( CrossUI.Drawing.Rectangle rectangle, Size cornerRadius ) : void
Text ( string text, Rectangle rectangle ) : void

Private Methods

Method Description
createBrush ( Color color ) : SolidColorBrush
createPath ( bool filled, Vector2 begin, Action figureBuilder ) : PathGeometry
createTextFormat ( ) : SharpDX.DirectWrite.TextFormat
createTextLayout ( string text, SharpDX.DirectWrite format, double width, double height ) : TextLayout
drawClosedPath ( Vector2 begin, Action figureBuilder ) : void
drawOpenPath ( Vector2 begin, Action figureBuilder ) : void
fillPath ( Vector2 begin, Action figureBuilder ) : void
fillRect ( CrossUI.Drawing.Rectangle rectangle ) : RectangleF
requireWriteFactory ( ) : SharpDX.DirectWrite.Factory
strokeAlignedRect ( CrossUI.Drawing.Rectangle rectangle ) : RectangleF
transformChanged ( ) : void

Method Details

Arc() public method

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

Bezier() public method

public Bezier ( CubicBezier bezier ) : void
bezier CrossUI.Drawing.CubicBezier
return void

Dispose() public method

public Dispose ( ) : void
return void

DrawingTarget() public method

public DrawingTarget ( DrawingState state, DrawingTransform transform, RenderTarget target, int width, int height ) : System
state CrossUI.Drawing.DrawingState
transform CrossUI.Drawing.DrawingTransform
target RenderTarget
width int
height int
return System

Ellipse() public method

public Ellipse ( CrossUI.Drawing.Rectangle rectangle ) : void
rectangle CrossUI.Drawing.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 CrossUI.Drawing.Point
p2 CrossUI.Drawing.Point
return void

MeasureText() public method

public MeasureText ( string text, double layoutWidth, double layoutHeight ) : TextSize
text string
layoutWidth double
layoutHeight double
return TextSize

Polygon() public method

public Polygon ( Point points ) : void
points CrossUI.Drawing.Point
return void

Rectangle() public method

public Rectangle ( CrossUI.Drawing.Rectangle rectangle ) : void
rectangle CrossUI.Drawing.Rectangle
return void

Report() public method

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

RoundedRectangle() public method

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

Text() public method

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