Flutter Engine
The Flutter Engine
SkParsePath.h
Go to the documentation of this file.
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
15class SkString;
16
18public:
19 static bool FromSVGString(const char str[], SkPath*);
20
21 enum class PathEncoding { Absolute, Relative };
22 static SkString ToSVGString(const SkPath&, PathEncoding = PathEncoding::Absolute);
23};
24
25#endif
#define SK_API
Definition: SkAPI.h:35
JSString ToSVGString(const SkPath &path)
Definition: SkPath.h:59
constexpr T Absolute(const T &val)
Definition: scalar.h:21
SkPathOrNull EMSCRIPTEN_KEEPALIVE FromSVGString(std::string str)