svg_loader: code refactoring

remove more unused declarations...
This commit is contained in:
Hermet Park 2021-06-30 14:09:09 +09:00 committed by Hermet Park
parent 3e7888b538
commit 571a1e5caa

View file

@ -25,30 +25,24 @@
#include "tvgCommon.h"
#include "tvgArray.h"
struct SvgNode;
struct SvgStyleGradient;
enum class SvgNodeType
{
Doc,
G,
Defs,
//Switch, //Not support
Animation,
Arc,
Circle,
Ellipse,
Image,
Line,
Path,
Polygon,
Polyline,
Rect,
Text,
TextArea,
Tspan,
Use,
Video,
ClipPath,
Mask,
//Custome_command, //Not support
Unknown
};
@ -63,7 +57,6 @@ enum class SvgLengthType
In,
};
enum class SvgFillFlags
{
Paint = 0x01,
@ -91,20 +84,6 @@ enum class SvgGradientType
Radial
};
enum class SvgStyleType
{
Quality,
Fill,
ViewportFill,
Font,
Stroke,
SolidColor,
Gradient,
Transform,
Opacity,
CompOp
};
enum class SvgFillRule
{
Winding = 0,
@ -120,10 +99,6 @@ enum class SvgParserLengthType
Other
};
struct SvgNode;
struct SvgStyleGradient;
struct SvgDocNode
{
float w;
@ -145,9 +120,6 @@ struct SvgDefsNode
Array<SvgStyleGradient*> gradients;
};
struct SvgArcNode
{
};
struct SvgEllipseNode
{
@ -298,7 +270,6 @@ struct SvgNode
SvgGNode g;
SvgDocNode doc;
SvgDefsNode defs;
SvgArcNode arc;
SvgCircleNode circle;
SvgEllipseNode ellipse;
SvgPolygonNode polygon;