deno.land / x / skia_canvas@0.5.8 / native / include / path2d.hpp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include "include/core/SkString.h"#include "include/core/SkPath.h"#include "include/core/SkPaint.h"#include "include/utils/SkParsePath.h"#include "include/core/SkMatrix.h"#include "include/pathops/SkPathOps.h"#include "include/core/SkPathUtils.h"#include "include/common.hpp"
extern "C" { SKIA_EXPORT SkPath* sk_path_create(); SKIA_EXPORT SkPath* sk_path_create_copy(SkPath* path); SKIA_EXPORT SkPath* sk_path_from_svg_string(char* svg); SKIA_EXPORT void sk_path_begin(SkPath* path); SKIA_EXPORT void sk_path_move_to(SkPath* path, float x, float y); SKIA_EXPORT void sk_path_line_to(SkPath* path, float x, float y); SKIA_EXPORT void sk_path_rect(SkPath* path, float x, float y, float width, float height); SKIA_EXPORT void sk_path_round_rect(SkPath* path, float x, float y, float width, float height, float tl, float tr, float br, float bl); SKIA_EXPORT void sk_path_close(SkPath* path); SKIA_EXPORT void sk_path_arc_to(SkPath* path, float x1, float y1, float x2, float y2, float radius); SKIA_EXPORT void sk_path_ellipse(SkPath* path, float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float endAngle, bool clockwise); SKIA_EXPORT void sk_path_arc(SkPath* path, float x, float y, float radius, float startAngle, float endAngle, bool clockwise); SKIA_EXPORT void sk_path_bezier_curve_to(SkPath* path, float cp1x, float cp1y, float cp2x, float cp2y, float x, float y); SKIA_EXPORT void sk_path_quadratic_curve_to(SkPath* path, float cpx, float cpy, float x, float y); SKIA_EXPORT int sk_path_is_point_in_path(SkPath* path, float x, float y, int rule); SKIA_EXPORT int sk_path_is_point_in_stroke(SkPath* path, float x, float y, float strokeWidth); SKIA_EXPORT SkString* sk_path_to_svg(SkPath* path, const char** outString, int* outSize); SKIA_EXPORT void sk_free_string(SkString* str); SKIA_EXPORT int sk_path_simplify(SkPath* path); SKIA_EXPORT int sk_path_as_winding(SkPath* path); SKIA_EXPORT int sk_path_op(SkPath* p1, SkPath* p2, int op); SKIA_EXPORT void sk_path_add_path(SkPath* p1, SkPath* p2, float* t); SKIA_EXPORT void sk_path_destroy(SkPath* path);}
skia_canvas

Version Info

Tagged at
8 months ago