Flutter Engine
 
Loading...
Searching...
No Matches
path_ops.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_TOOLS_PATH_OPS_PATH_OPS_H_
6#define FLUTTER_TOOLS_PATH_OPS_PATH_OPS_H_
7
8#include "third_party/skia/include/core/SkPath.h"
9#include "third_party/skia/include/core/SkPathBuilder.h"
10#include "third_party/skia/include/core/SkPathTypes.h"
11#include "third_party/skia/include/pathops/SkPathOps.h"
12
13#ifdef _WIN32
14#define API __declspec(dllexport)
15#else
16#define API __attribute__((visibility("default")))
17#endif
18
19extern "C" {
20
21namespace flutter {
22
23API SkPath* CreatePath(SkPathFillType fill_type);
24
26
27API void MoveTo(SkPath* path, SkScalar x, SkScalar y);
28
29API void LineTo(SkPath* path, SkScalar x, SkScalar y);
30
31API void CubicTo(SkPath* path,
32 SkScalar x1,
33 SkScalar y1,
34 SkScalar x2,
35 SkScalar y2,
36 SkScalar x3,
37 SkScalar y3);
38
39API void Close(SkPath* path);
40
41API void Reset(SkPath* path);
42
43API void DestroyPath(SkPath* path);
44
45API void Op(SkPath* one, SkPath* two, SkPathOp op);
46
47API int GetFillType(SkPath* path);
48
49struct API PathData {
50 uint8_t* verbs;
51 size_t verb_count;
52 float* points;
54};
55
56API struct PathData* Data(SkPath* path);
57
59
60} // namespace flutter
61}
62
63#endif // FLUTTER_TOOLS_PATH_OPS_PATH_OPS_H_
int32_t x
double y
void Op(SkPath *one, SkPath *two, SkPathOp op)
Definition path_ops.cc:44
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition switch_defs.h:52
void DestroyData(PathData *data)
Definition path_ops.cc:70
void DestroyPath(SkPath *path)
Definition path_ops.cc:14
int GetFillType(SkPath *path)
Definition path_ops.cc:48
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition switch_defs.h:36
SkPath * CreatePath(SkPathFillType fill_type)
Definition path_ops.cc:8
void Reset(SkPath *path)
Definition path_ops.cc:40
void DestroyPathBuilder(PathBuilder *builder)
void MoveTo(PathBuilder *builder, Scalar x, Scalar y)
void LineTo(PathBuilder *builder, Scalar x, Scalar y)
void CubicTo(PathBuilder *builder, Scalar x1, Scalar y1, Scalar x2, Scalar y2, Scalar x3, Scalar y3)
void Close(PathBuilder *builder)
#define API
Definition path_ops.h:16
Definition data.h:17
size_t verb_count
Definition path_ops.h:51
uint8_t * verbs
Definition path_ops.h:50
size_t point_count
Definition path_ops.h:53