Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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)
SkPathOrNull EMSCRIPTEN_KEEPALIVE FromSVGString(std::string str)