C# Class SVGGraphicsPath, UnitySVG

Mostra file Open project: MrJoy/UnitySVG Class Usage Examples

Public Properties

Property Type Description
fillRule SVGFillRule

Public Methods

Method Description
Add ( SVGCircleElement, circleElement ) : void
Add ( SVGEllipseElement, ellipseElement ) : void
Add ( SVGPolygonElement, polygonElement ) : void
Add ( SVGPolylineElement, polylineElement ) : void
Add ( SVGRectElement, rectElement ) : void
AddArcTo ( float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, Vector2 p ) : void
AddCircleTo ( Vector2 p, float r ) : void
AddCubicCurveTo ( Vector2 p1, Vector2 p2, Vector2 p ) : void
AddEllipseTo ( Vector2 p, float r1, float r2, float angle ) : void
AddLineTo ( Vector2 p ) : void
AddMoveTo ( Vector2 p ) : void
AddQuadraticCurveTo ( Vector2 p1, Vector2 p ) : void
ExpandBounds ( List points ) : void
ExpandBounds ( Vector2 point ) : void
ExpandBounds ( Vector2 point, float deltax, float deltay ) : void
ExpandBounds ( float x, float y ) : void
GetBound ( ) : Rect
RenderPath ( ISVGPathDraw pathDraw, bool isClose ) : void
Reset ( ) : void
SVGGraphicsPath ( ) : System.Collections.Generic

Private Methods

Method Description
ExpandBounds ( float x, float y, float dx, float dy ) : void
SetFirstPoint ( Vector2 p ) : void

Method Details

Add() public method

public Add ( SVGCircleElement, circleElement ) : void
circleElement SVGCircleElement,
return void

Add() public method

public Add ( SVGEllipseElement, ellipseElement ) : void
ellipseElement SVGEllipseElement,
return void

Add() public method

public Add ( SVGPolygonElement, polygonElement ) : void
polygonElement SVGPolygonElement,
return void

Add() public method

public Add ( SVGPolylineElement, polylineElement ) : void
polylineElement SVGPolylineElement,
return void

Add() public method

public Add ( SVGRectElement, rectElement ) : void
rectElement SVGRectElement,
return void

AddArcTo() public method

public AddArcTo ( float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag, Vector2 p ) : void
r1 float
r2 float
angle float
largeArcFlag bool
sweepFlag bool
p Vector2
return void

AddCircleTo() public method

public AddCircleTo ( Vector2 p, float r ) : void
p Vector2
r float
return void

AddCubicCurveTo() public method

public AddCubicCurveTo ( Vector2 p1, Vector2 p2, Vector2 p ) : void
p1 Vector2
p2 Vector2
p Vector2
return void

AddEllipseTo() public method

public AddEllipseTo ( Vector2 p, float r1, float r2, float angle ) : void
p Vector2
r1 float
r2 float
angle float
return void

AddLineTo() public method

public AddLineTo ( Vector2 p ) : void
p Vector2
return void

AddMoveTo() public method

public AddMoveTo ( Vector2 p ) : void
p Vector2
return void

AddQuadraticCurveTo() public method

public AddQuadraticCurveTo ( Vector2 p1, Vector2 p ) : void
p1 Vector2
p Vector2
return void

ExpandBounds() public method

public ExpandBounds ( List points ) : void
points List
return void

ExpandBounds() public method

public ExpandBounds ( Vector2 point ) : void
point Vector2
return void

ExpandBounds() public method

public ExpandBounds ( Vector2 point, float deltax, float deltay ) : void
point Vector2
deltax float
deltay float
return void

ExpandBounds() public method

public ExpandBounds ( float x, float y ) : void
x float
y float
return void

GetBound() public method

public GetBound ( ) : Rect
return Rect

RenderPath() public method

public RenderPath ( ISVGPathDraw pathDraw, bool isClose ) : void
pathDraw ISVGPathDraw
isClose bool
return void

Reset() public method

public Reset ( ) : void
return void

SVGGraphicsPath() public method

public SVGGraphicsPath ( ) : System.Collections.Generic
return System.Collections.Generic

Property Details

fillRule public_oe property

public SVGFillRule fillRule
return SVGFillRule