Flutter Engine
The Flutter Engine
|
#include "include/core/SkCubicMap.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPath.h"
#include "include/core/SkPathEffect.h"
#include "include/core/SkPathUtils.h"
#include "include/core/SkRect.h"
#include "include/core/SkString.h"
#include "include/core/SkStrokeRec.h"
#include "include/effects/SkDashPathEffect.h"
#include "include/effects/SkTrimPathEffect.h"
#include "include/pathops/SkPathOps.h"
#include "include/private/base/SkFloatingPoint.h"
#include "include/utils/SkParsePath.h"
#include "src/base/SkFloatBits.h"
#include "src/core/SkPaintDefaults.h"
#include "src/core/SkPathPriv.h"
#include <emscripten.h>
#include <emscripten/bind.h>
Go to the source code of this file.
Classes | |
struct | StrokeOpts |
struct | SimpleMatrix |
Macros | |
#define | CHECK_NUM_ARGS(n) |
Typedefs | |
using | SkPathOrNull = emscripten::val |
using | JSString = emscripten::val |
using | JSArray = emscripten::val |
Functions | |
JSArray EMSCRIPTEN_KEEPALIVE | ToCmds (const SkPath &path) |
SkPathOrNull EMSCRIPTEN_KEEPALIVE | FromCmds (uintptr_t cptr, int numCmds) |
SkPath EMSCRIPTEN_KEEPALIVE | NewPath () |
SkPath EMSCRIPTEN_KEEPALIVE | CopyPath (const SkPath &a) |
bool EMSCRIPTEN_KEEPALIVE | Equals (const SkPath &a, const SkPath &b) |
void | ApplyArcTo (SkPath &p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar radius) |
void | ApplyClose (SkPath &p) |
void | ApplyConicTo (SkPath &p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar w) |
void | ApplyCubicTo (SkPath &p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3) |
void | ApplyLineTo (SkPath &p, SkScalar x, SkScalar y) |
void | ApplyMoveTo (SkPath &p, SkScalar x, SkScalar y) |
void | ApplyQuadTo (SkPath &p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) |
bool EMSCRIPTEN_KEEPALIVE | IsEmpty (const SkPath &path) |
JSString EMSCRIPTEN_KEEPALIVE | ToSVGString (const SkPath &path) |
SkPathOrNull EMSCRIPTEN_KEEPALIVE | FromSVGString (std::string str) |
bool EMSCRIPTEN_KEEPALIVE | ApplySimplify (SkPath &path) |
bool EMSCRIPTEN_KEEPALIVE | ApplyAsWinding (SkPath &path) |
bool EMSCRIPTEN_KEEPALIVE | ApplyPathOp (SkPath &pathOne, const SkPath &pathTwo, SkPathOp op) |
SkPathOrNull EMSCRIPTEN_KEEPALIVE | MakeFromOp (const SkPath &pathOne, const SkPath &pathTwo, SkPathOp op) |
SkPathOrNull EMSCRIPTEN_KEEPALIVE | ResolveBuilder (SkOpBuilder &builder) |
void EMSCRIPTEN_KEEPALIVE | ToCanvas (const SkPath &path, emscripten::val ctx) |
emscripten::val EMSCRIPTEN_KEEPALIVE | ToPath2D (const SkPath &path) |
void | ApplyAddRect (SkPath &path, SkScalar x, SkScalar y, SkScalar width, SkScalar height) |
void | ApplyAddArc (SkPath &path, SkScalar x, SkScalar y, SkScalar radius, SkScalar startAngle, SkScalar endAngle, bool ccw) |
void | ApplyEllipse (SkPath &path, SkScalar x, SkScalar y, SkScalar radiusX, SkScalar radiusY, SkScalar rotation, SkScalar startAngle, SkScalar endAngle, bool ccw) |
void | ApplyAddPath (SkPath &orig, const SkPath &newPath, SkScalar scaleX, SkScalar skewX, SkScalar transX, SkScalar skewY, SkScalar scaleY, SkScalar transY, SkScalar pers0, SkScalar pers1, SkScalar pers2) |
void | ApplyReverseAddPath (SkPath &orig, const SkPath &newPath) |
JSString | GetFillTypeString (const SkPath &path) |
bool | ApplyDash (SkPath &path, SkScalar on, SkScalar off, SkScalar phase) |
bool | ApplyTrim (SkPath &path, SkScalar startT, SkScalar stopT, bool isComplement) |
bool | ApplyStroke (SkPath &path, StrokeOpts opts) |
SkMatrix | toSkMatrix (const SimpleMatrix &sm) |
void | ApplyTransform (SkPath &orig, const SimpleMatrix &sm) |
void | ApplyTransform (SkPath &orig, SkScalar scaleX, SkScalar skewX, SkScalar transX, SkScalar skewY, SkScalar scaleY, SkScalar transY, SkScalar pers0, SkScalar pers1, SkScalar pers2) |
float | SkBits2FloatUnsigned (uint32_t floatAsBits) |
EMSCRIPTEN_BINDINGS (skia) | |
Variables | |
static const int | MOVE = 0 |
static const int | LINE = 1 |
static const int | QUAD = 2 |
static const int | CONIC = 3 |
static const int | CUBIC = 4 |
static const int | CLOSE = 5 |
emscripten::val | JSPath2D = emscripten::val::global("Path2D") |
#define CHECK_NUM_ARGS | ( | n | ) |
using JSArray = emscripten::val |
Definition at line 45 of file pathkit_wasm_bindings.cpp.
using JSString = emscripten::val |
Definition at line 44 of file pathkit_wasm_bindings.cpp.
using SkPathOrNull = emscripten::val |
Definition at line 42 of file pathkit_wasm_bindings.cpp.
void ApplyAddArc | ( | SkPath & | path, |
SkScalar | x, | ||
SkScalar | y, | ||
SkScalar | radius, | ||
SkScalar | startAngle, | ||
SkScalar | endAngle, | ||
bool | ccw | ||
) |
Definition at line 320 of file pathkit_wasm_bindings.cpp.
void ApplyAddPath | ( | SkPath & | orig, |
const SkPath & | newPath, | ||
SkScalar | scaleX, | ||
SkScalar | skewX, | ||
SkScalar | transX, | ||
SkScalar | skewY, | ||
SkScalar | scaleY, | ||
SkScalar | transY, | ||
SkScalar | pers0, | ||
SkScalar | pers1, | ||
SkScalar | pers2 | ||
) |
Definition at line 344 of file pathkit_wasm_bindings.cpp.
Definition at line 316 of file pathkit_wasm_bindings.cpp.
Definition at line 176 of file pathkit_wasm_bindings.cpp.
bool EMSCRIPTEN_KEEPALIVE ApplyAsWinding | ( | SkPath & | path | ) |
Definition at line 242 of file pathkit_wasm_bindings.cpp.
void ApplyClose | ( | SkPath & | p | ) |
Definition at line 181 of file pathkit_wasm_bindings.cpp.
Definition at line 185 of file pathkit_wasm_bindings.cpp.
void ApplyCubicTo | ( | SkPath & | p, |
SkScalar | x1, | ||
SkScalar | y1, | ||
SkScalar | x2, | ||
SkScalar | y2, | ||
SkScalar | x3, | ||
SkScalar | y3 | ||
) |
Definition at line 190 of file pathkit_wasm_bindings.cpp.
Definition at line 374 of file pathkit_wasm_bindings.cpp.
void ApplyEllipse | ( | SkPath & | path, |
SkScalar | x, | ||
SkScalar | y, | ||
SkScalar | radiusX, | ||
SkScalar | radiusY, | ||
SkScalar | rotation, | ||
SkScalar | startAngle, | ||
SkScalar | endAngle, | ||
bool | ccw | ||
) |
Definition at line 329 of file pathkit_wasm_bindings.cpp.
Definition at line 195 of file pathkit_wasm_bindings.cpp.
Definition at line 199 of file pathkit_wasm_bindings.cpp.
Definition at line 246 of file pathkit_wasm_bindings.cpp.
Definition at line 203 of file pathkit_wasm_bindings.cpp.
Definition at line 354 of file pathkit_wasm_bindings.cpp.
bool EMSCRIPTEN_KEEPALIVE ApplySimplify | ( | SkPath & | path | ) |
Definition at line 238 of file pathkit_wasm_bindings.cpp.
bool ApplyStroke | ( | SkPath & | path, |
StrokeOpts | opts | ||
) |
Definition at line 415 of file pathkit_wasm_bindings.cpp.
void ApplyTransform | ( | SkPath & | orig, |
const SimpleMatrix & | sm | ||
) |
Definition at line 445 of file pathkit_wasm_bindings.cpp.
void ApplyTransform | ( | SkPath & | orig, |
SkScalar | scaleX, | ||
SkScalar | skewX, | ||
SkScalar | transX, | ||
SkScalar | skewY, | ||
SkScalar | scaleY, | ||
SkScalar | transY, | ||
SkScalar | pers0, | ||
SkScalar | pers1, | ||
SkScalar | pers2 | ||
) |
Definition at line 449 of file pathkit_wasm_bindings.cpp.
Definition at line 389 of file pathkit_wasm_bindings.cpp.
Definition at line 157 of file pathkit_wasm_bindings.cpp.
EMSCRIPTEN_BINDINGS | ( | skia | ) |
Definition at line 487 of file pathkit_wasm_bindings.cpp.
Definition at line 162 of file pathkit_wasm_bindings.cpp.
SkPathOrNull EMSCRIPTEN_KEEPALIVE FromCmds | ( | uintptr_t | cptr, |
int | numCmds | ||
) |
Definition at line 95 of file pathkit_wasm_bindings.cpp.
SkPathOrNull EMSCRIPTEN_KEEPALIVE FromSVGString | ( | std::string | str | ) |
Definition at line 226 of file pathkit_wasm_bindings.cpp.
Definition at line 359 of file pathkit_wasm_bindings.cpp.
bool EMSCRIPTEN_KEEPALIVE IsEmpty | ( | const SkPath & | path | ) |
Definition at line 207 of file pathkit_wasm_bindings.cpp.
SkPathOrNull EMSCRIPTEN_KEEPALIVE MakeFromOp | ( | const SkPath & | pathOne, |
const SkPath & | pathTwo, | ||
SkPathOp | op | ||
) |
Definition at line 250 of file pathkit_wasm_bindings.cpp.
SkPath EMSCRIPTEN_KEEPALIVE NewPath | ( | ) |
Definition at line 153 of file pathkit_wasm_bindings.cpp.
SkPathOrNull EMSCRIPTEN_KEEPALIVE ResolveBuilder | ( | SkOpBuilder & | builder | ) |
Definition at line 258 of file pathkit_wasm_bindings.cpp.
float SkBits2FloatUnsigned | ( | uint32_t | floatAsBits | ) |
Definition at line 468 of file pathkit_wasm_bindings.cpp.
void EMSCRIPTEN_KEEPALIVE ToCanvas | ( | const SkPath & | path, |
emscripten::val | ctx | ||
) |
Definition at line 270 of file pathkit_wasm_bindings.cpp.
Definition at line 51 of file pathkit_wasm_bindings.cpp.
emscripten::val EMSCRIPTEN_KEEPALIVE ToPath2D | ( | const SkPath & | path | ) |
Definition at line 307 of file pathkit_wasm_bindings.cpp.
SkMatrix toSkMatrix | ( | const SimpleMatrix & | sm | ) |
Definition at line 217 of file pathkit_wasm_bindings.cpp.
|
static |
Definition at line 36 of file pathkit_wasm_bindings.cpp.
|
static |
Definition at line 34 of file pathkit_wasm_bindings.cpp.
|
static |
Definition at line 35 of file pathkit_wasm_bindings.cpp.
emscripten::val JSPath2D = emscripten::val::global("Path2D") |
Definition at line 305 of file pathkit_wasm_bindings.cpp.
|
static |
Definition at line 32 of file pathkit_wasm_bindings.cpp.
|
static |
Definition at line 31 of file pathkit_wasm_bindings.cpp.
|
static |
Definition at line 33 of file pathkit_wasm_bindings.cpp.