Flutter Engine
The 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
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
24
26
28
30
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
44
45API void Op(SkPath* one, SkPath* two, SkPathOp op);
46
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_
SkPathOp
Definition SkPathOps.h:22
SkPathFillType
Definition SkPathTypes.h:11
float SkScalar
Definition extension.cpp:12
double y
double x
void MoveTo(SkPath *path, SkScalar x, SkScalar y)
Definition path_ops.cc:18
void Close(SkPath *path)
Definition path_ops.cc:36
void LineTo(SkPath *path, SkScalar x, SkScalar y)
Definition path_ops.cc:22
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 switches.h:57
void CubicTo(SkPath *path, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3)
Definition path_ops.cc:26
void DestroyData(PathData *data)
Definition path_ops.cc:67
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 switches.h:41
SkPath * CreatePath(SkPathFillType fill_type)
Definition path_ops.cc:8
struct PathData * Data(SkPath *path)
Definition path_ops.cc:52
void Reset(SkPath *path)
Definition path_ops.cc:40
API void DestroyPathBuilder(SkPath *path)
#define API
Definition path_ops.h:16
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