Reference Codebot.Render.SVG.pas
Part of the Codebot Render package
The Codebot.Render.SVG unit reads and draws SVG documents, so you can use art from a vector drawing program in your scenes. TSvgDocument reads a document from text or a file into a tree of nodes, including lines, polylines, polygons, circles, ellipses, rectangles, paths, and groups that share a transform and a style. TSvgRender draws a document on a canvas.
Items 131 items
| Name | Kind | Line |
|---|---|---|
| NewSvgDocument | function | 257 |
| TSvgCap | enum | 37 |
| svgCapRound | enum value | 37 |
| svgCapButt | enum value | 37 |
| svgCapSquare | enum value | 37 |
| TSvgCircle | class | 166 |
| R | field | 170 |
| X | field | 170 |
| Y | field | 170 |
| Parse | procedure | 168 |
| TSvgCollection | class | 215 |
| Create | constructor | 225 |
| Destroy | destructor | 226 |
| GetEnumerator | function | 223 |
| Count | property | 228 |
| Node | property | 230 |
| TSvgColor | alias | 34 |
| TSvgCommand | record | 195 |
| Action | field | 196 |
| Compressed | field | 197 |
| X | field | 198 |
| X1 | field | 198 |
| X2 | field | 198 |
| Y | field | 198 |
| Y1 | field | 198 |
| Y2 | field | 198 |
| TSvgCommands | alias | 202 |
| TSvgDocument | class | 240 |
| ParseFile | procedure | 249 |
| ParseText | procedure | 247 |
| Node | property | 251 |
| NodeCount | property | 250 |
| ViewBox | property | 253 |
| TSvgEllipse | class | 175 |
| H | field | 179 |
| W | field | 179 |
| X | field | 179 |
| Y | field | 179 |
| Parse | procedure | 177 |
| TSvgEnumerator | alias | 131 |
| TSvgFillRule | enum | 42 |
| svgFillNonZero | enum value | 42 |
| svgFillEvenOdd | enum value | 42 |
| TSvgGroup | class | 235 |
| TSvgJoin | enum | 39 |
| svgJoinRound | enum value | 39 |
| svgJoinBevel | enum value | 39 |
| svgJoinMiter | enum value | 39 |
| TSvgLine | class | 140 |
| X1 | field | 144 |
| X2 | field | 144 |
| Y1 | field | 144 |
| Y2 | field | 144 |
| Parse | procedure | 142 |
| TSvgNode | class | 81 |
| ClassId | field | 99 |
| Doc | field | 96 |
| Id | field | 98 |
| Opacity | field | 101 |
| Parent | field | 97 |
| Removed | field | 102 |
| Style | field | 103 |
| StyleEx | field | 104 |
| Transform | field | 100 |
| ApplyProperty | function | 92 |
| ApplyStyle | procedure | 93 |
| Attribute | function | 115 |
| AttributeFloat | function | 118 |
| BuildTransform | procedure | 108 |
| Create | constructor | 105 |
| Destroy | destructor | 106 |
| HasAttribute | function | 111 |
| Parse | procedure | 94 |
| AttributeCount | property | 121 |
| AttributeNames | property | 122 |
| AttributeValues | property | 123 |
| TSvgNodeClass | classref | 126 |
| TSvgNodes | alias | 129 |
| TSvgPath | class | 206 |
| Commands | field | 210 |
| Parse | procedure | 208 |
| TSvgPathAction | enum | 192 |
| svgMove | enum value | 192 |
| svgLine | enum value | 192 |
| svgHLine | enum value | 192 |
| svgVLine | enum value | 192 |
| svgCubic | enum value | 192 |
| svgQuadratic | enum value | 192 |
| svgClose | enum value | 192 |
| TSvgPoints | alias | 149 |
| TSvgPolygon | class | 161 |
| TSvgPolyline | class | 152 |
| Points | field | 156 |
| Parse | procedure | 154 |
| TSvgRect | class | 184 |
| H | field | 188 |
| R | field | 188 |
| W | field | 188 |
| X | field | 188 |
| Y | field | 188 |
| Parse | procedure | 186 |
| TSvgRender | class | 265 |
| Create | constructor | 274 |
| Destroy | destructor | 275 |
| Draw | procedure | 281 |
| DrawAt | procedure | 287 |
| DrawNodes | procedure | 285 |
| DrawOutline | procedure | 283 |
| Parse | procedure | 277 |
| ParseFile | procedure | 279 |
| DocumentSize | property | 288 |
| NodeCount | property | 289 |
| ViewBox | property | 291 |
| TSvgRenderOptions | set | 262 |
| TSvgShape | class | 135 |
| TSvgStyle | record | 45 |
| Fill | field | 47 |
| FillOpacity | field | 48 |
| FillRule | field | 55 |
| Stroke | field | 49 |
| StrokeCap | field | 52 |
| StrokeJoin | field | 53 |
| StrokeMiter | field | 54 |
| StrokeOpacity | field | 50 |
| StrokeWidth | field | 51 |
| TSvgStyleEx | class | 60 |
| Copy | procedure | 62 |
| Create | constructor | 65 |
| Read | procedure | 63 |
| TSvgStyleExClass | classref | 69 |
| TSvgTransform | array | 73 |