Debian Codegraph @

include/utils/SkParsePath.h

raw
1
2 /*
3 * Copyright 2006 The Android Open Source Project
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9
10 #ifndef SkParsePath_DEFINED
11 #define SkParsePath_DEFINED
12
13 #include "include/core/SkPath.h"
14
15 class SkString;
16
17 class SK_API SkParsePath {
18 public:
19 static std::optional<SkPath> FromSVGString(const char str[]);
20 // Deprecated
21 static bool FromSVGString(const char str[], SkPath* outPath) {
22 if (auto result = FromSVGString(str)) {
23 *outPath = *result;
24 return true;
25 }
26 return false;
27 }
28
29 enum class PathEncoding { Absolute, Relative };
30 static SkString ToSVGString(const SkPath&, PathEncoding = PathEncoding::Absolute);
31 };
32
33 #endif