Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
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/SkPathBuilder.h"
9#include "third_party/skia/include/core/SkPathTypes.h"
10#include "third_party/skia/include/pathops/SkPathOps.h"
11
12#ifdef _WIN32
13#define API __declspec(dllexport)
14#else
15#define API __attribute__((visibility("default")))
16#endif
17
18extern "C" {
19
20namespace flutter {
21
22API SkPathBuilder* CreatePath(SkPathFillType fill_type);
23
24API void DestroyPath(SkPathBuilder* path);
25
26API void MoveTo(SkPathBuilder* path, SkScalar x, SkScalar y);
27
28API void LineTo(SkPathBuilder* path, SkScalar x, SkScalar y);
29
30API void CubicTo(SkPathBuilder* path,
31 SkScalar x1,
32 SkScalar y1,
33 SkScalar x2,
34 SkScalar y2,
35 SkScalar x3,
36 SkScalar y3);
37
38API void Close(SkPathBuilder* path);
39
40API void Reset(SkPathBuilder* path);
41
42API void Op(SkPathBuilder* one, SkPathBuilder* two, SkPathOp op);
43
44API int GetFillType(SkPathBuilder* path);
45
46struct API PathData {
47 uint8_t* verbs;
48 size_t verb_count;
49 float* points;
51};
52
53API struct PathData* Data(SkPathBuilder* path);
54
56
57} // namespace flutter
58}
59
60#endif // FLUTTER_TOOLS_PATH_OPS_PATH_OPS_H_
int32_t x
double y
void Op(SkPathBuilder *one, SkPathBuilder *two, SkPathOp op)
Definition path_ops.cc:44
void DestroyPath(SkPathBuilder *path)
Definition path_ops.cc:14
int GetFillType(SkPathBuilder *path)
Definition path_ops.cc:52
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
SkPathBuilder * CreatePath(SkPathFillType fill_type)
Definition path_ops.cc:10
void DestroyData(PathData *data)
Definition path_ops.cc:75
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
void Reset(SkPathBuilder *path)
Definition path_ops.cc:40
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:15
Definition data.h:17
size_t verb_count
Definition path_ops.h:48
uint8_t * verbs
Definition path_ops.h:47
size_t point_count
Definition path_ops.h:50