xref: /third_party/skia/include/utils/SkParsePath.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/skia/include/utils/
1cb93a386Sopenharmony_ci
2cb93a386Sopenharmony_ci/*
3cb93a386Sopenharmony_ci * Copyright 2006 The Android Open Source Project
4cb93a386Sopenharmony_ci *
5cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be
6cb93a386Sopenharmony_ci * found in the LICENSE file.
7cb93a386Sopenharmony_ci */
8cb93a386Sopenharmony_ci
9cb93a386Sopenharmony_ci
10cb93a386Sopenharmony_ci#ifndef SkParsePath_DEFINED
11cb93a386Sopenharmony_ci#define SkParsePath_DEFINED
12cb93a386Sopenharmony_ci
13cb93a386Sopenharmony_ci#include "include/core/SkPath.h"
14cb93a386Sopenharmony_ci
15cb93a386Sopenharmony_ciclass SkString;
16cb93a386Sopenharmony_ci
17cb93a386Sopenharmony_ciclass SK_API SkParsePath {
18cb93a386Sopenharmony_cipublic:
19cb93a386Sopenharmony_ci    static bool FromSVGString(const char str[], SkPath*);
20cb93a386Sopenharmony_ci
21cb93a386Sopenharmony_ci    enum class PathEncoding { Absolute, Relative };
22cb93a386Sopenharmony_ci    static void ToSVGString(const SkPath&, SkString*, PathEncoding = PathEncoding::Absolute);
23cb93a386Sopenharmony_ci};
24cb93a386Sopenharmony_ci
25cb93a386Sopenharmony_ci#endif
26

Indexes created Thu Nov 07 10:32:03 CST 2024