summaryrefslogtreecommitdiffstats
path: root/thirdparty/thorvg/src/loaders/svg/tvgSvgLoaderCommon.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-18 14:49:04 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-26 22:43:44 +0200
commit81949c2cd23e07db9a078b2206b3e43847e051b9 (patch)
treefc5f074b9563de0b2fc49fc338a39e863040b6c6 /thirdparty/thorvg/src/loaders/svg/tvgSvgLoaderCommon.h
parentb905959f4382020b424fa093c380e163a7a7f404 (diff)
downloadredot-engine-81949c2cd23e07db9a078b2206b3e43847e051b9.tar.gz
thorvg: Update to 0.10.7
Fixes #81618.
Diffstat (limited to 'thirdparty/thorvg/src/loaders/svg/tvgSvgLoaderCommon.h')
-rw-r--r--thirdparty/thorvg/src/loaders/svg/tvgSvgLoaderCommon.h27
1 files changed, 9 insertions, 18 deletions
diff --git a/thirdparty/thorvg/src/loaders/svg/tvgSvgLoaderCommon.h b/thirdparty/thorvg/src/loaders/svg/tvgSvgLoaderCommon.h
index 961438ff42..1809c7749c 100644
--- a/thirdparty/thorvg/src/loaders/svg/tvgSvgLoaderCommon.h
+++ b/thirdparty/thorvg/src/loaders/svg/tvgSvgLoaderCommon.h
@@ -100,7 +100,8 @@ enum class SvgStrokeFlags
Cap = 0x20,
Join = 0x40,
Dash = 0x80,
- Miterlimit = 0x100
+ Miterlimit = 0x100,
+ DashOffset = 0x200
};
constexpr bool operator &(SvgStrokeFlags a, SvgStrokeFlags b)
@@ -139,7 +140,8 @@ enum class SvgStyleFlags
MaskType = 0x4000,
Display = 0x8000,
PaintOrder = 0x10000,
- StrokeMiterlimit = 0x20000
+ StrokeMiterlimit = 0x20000,
+ StrokeDashOffset = 0x40000,
};
constexpr bool operator &(SvgStyleFlags a, SvgStyleFlags b)
@@ -182,7 +184,8 @@ enum class SvgGradientFlags
Cy = 0x80,
R = 0x100,
Fx = 0x200,
- Fy = 0x400
+ Fy = 0x400,
+ Fr = 0x800
};
constexpr bool operator &(SvgGradientFlags a, SvgGradientFlags b)
@@ -390,11 +393,13 @@ struct SvgRadialGradient
float fx;
float fy;
float r;
+ float fr;
bool isCxPercentage;
bool isCyPercentage;
bool isFxPercentage;
bool isFyPercentage;
bool isRPercentage;
+ bool isFrPercentage;
};
struct SvgComposite
@@ -423,6 +428,7 @@ struct SvgPaint
struct SvgDash
{
Array<float> array;
+ float offset;
};
struct SvgStyleGradient
@@ -469,7 +475,6 @@ struct SvgStyleStroke
StrokeJoin join;
float miterlimit;
SvgDash dash;
- int dashCount;
};
struct SvgStyleProperty
@@ -561,18 +566,4 @@ struct Box
float x, y, w, h;
};
-/*
- * https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strtof-strtod-l-wcstod-wcstod-l?view=vs-2017
- *
- * src should be one of the following form :
- *
- * [whitespace] [sign] {digits [radix digits] | radix digits} [{e | E} [sign] digits]
- * [whitespace] [sign] {INF | INFINITY}
- * [whitespace] [sign] NAN [sequence]
- *
- * No hexadecimal form supported
- * no sequence supported after NAN
- */
-float customStrtof(const char *nptr, char **endptr);
-
#endif