Flutter Engine
The Flutter Engine
|
#include <path.h>
Public Member Functions | |
~CanvasPath () override | |
int | getFillType () |
void | setFillType (int fill_type) |
void | moveTo (double x, double y) |
void | relativeMoveTo (double x, double y) |
void | lineTo (double x, double y) |
void | relativeLineTo (double x, double y) |
void | quadraticBezierTo (double x1, double y1, double x2, double y2) |
void | relativeQuadraticBezierTo (double x1, double y1, double x2, double y2) |
void | cubicTo (double x1, double y1, double x2, double y2, double x3, double y3) |
void | relativeCubicTo (double x1, double y1, double x2, double y2, double x3, double y3) |
void | conicTo (double x1, double y1, double x2, double y2, double w) |
void | relativeConicTo (double x1, double y1, double x2, double y2, double w) |
void | arcTo (double left, double top, double right, double bottom, double startAngle, double sweepAngle, bool forceMoveTo) |
void | arcToPoint (double arcEndX, double arcEndY, double radiusX, double radiusY, double xAxisRotation, bool isLargeArc, bool isClockwiseDirection) |
void | relativeArcToPoint (double arcEndDeltaX, double arcEndDeltaY, double radiusX, double radiusY, double xAxisRotation, bool isLargeArc, bool isClockwiseDirection) |
void | addRect (double left, double top, double right, double bottom) |
void | addOval (double left, double top, double right, double bottom) |
void | addArc (double left, double top, double right, double bottom, double startAngle, double sweepAngle) |
void | addPolygon (const tonic::Float32List &points, bool close) |
void | addRRect (const RRect &rrect) |
void | addPath (CanvasPath *path, double dx, double dy) |
void | addPathWithMatrix (CanvasPath *path, double dx, double dy, Dart_Handle matrix4_handle) |
void | extendWithPath (CanvasPath *path, double dx, double dy) |
void | extendWithPathAndMatrix (CanvasPath *path, double dx, double dy, Dart_Handle matrix4_handle) |
void | close () |
void | reset () |
bool | contains (double x, double y) |
void | shift (Dart_Handle path_handle, double dx, double dy) |
void | transform (Dart_Handle path_handle, Dart_Handle matrix4_handle) |
tonic::Float32List | getBounds () |
bool | op (CanvasPath *path1, CanvasPath *path2, int operation) |
void | clone (Dart_Handle path_handle) |
const SkPath & | path () const |
Public Member Functions inherited from flutter::RefCountedDartWrappable< CanvasPath > | |
virtual void | RetainDartWrappableReference () const override |
virtual void | ReleaseDartWrappableReference () const override |
Public Member Functions inherited from fml::RefCountedThreadSafe< CanvasPath > | |
void | Release () const |
Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
void | AddRef () const |
bool | HasOneRef () const |
void | AssertHasOneRef () const |
Public Member Functions inherited from tonic::DartWrappable | |
DartWrappable () | |
virtual const DartWrapperInfo & | GetDartWrapperInfo () const =0 |
virtual void | RetainDartWrappableReference () const =0 |
virtual void | ReleaseDartWrappableReference () const =0 |
Dart_Handle | CreateDartWrapper (DartState *dart_state) |
void | AssociateWithDartWrapper (Dart_Handle wrappable) |
void | ClearDartWrapper () |
Dart_WeakPersistentHandle | dart_wrapper () const |
Static Public Member Functions | |
static void | CreateFrom (Dart_Handle path_handle, const SkPath &src) |
static fml::RefPtr< CanvasPath > | Create (Dart_Handle wrapper) |
Additional Inherited Members | |
Public Types inherited from tonic::DartWrappable | |
enum | DartNativeFields { kPeerIndex , kNumberOfNativeFields } |
Protected Member Functions inherited from fml::RefCountedThreadSafe< CanvasPath > | |
RefCountedThreadSafe () | |
~RefCountedThreadSafe () | |
Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
RefCountedThreadSafeBase () | |
~RefCountedThreadSafeBase () | |
bool | Release () const |
void | Adopt () |
Protected Member Functions inherited from tonic::DartWrappable | |
virtual | ~DartWrappable () |
Static Protected Member Functions inherited from tonic::DartWrappable | |
static Dart_PersistentHandle | GetTypeForWrapper (tonic::DartState *dart_state, const tonic::DartWrapperInfo &wrapper_info) |
|
overridedefault |
void flutter::CanvasPath::addArc | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom, | ||
double | startAngle, | ||
double | sweepAngle | ||
) |
Definition at line 189 of file path.cc.
void flutter::CanvasPath::addOval | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom | ||
) |
Definition at line 182 of file path.cc.
void flutter::CanvasPath::addPath | ( | CanvasPath * | path, |
double | dx, | ||
double | dy | ||
) |
Definition at line 214 of file path.cc.
void flutter::CanvasPath::addPathWithMatrix | ( | CanvasPath * | path, |
double | dx, | ||
double | dy, | ||
Dart_Handle | matrix4_handle | ||
) |
Definition at line 224 of file path.cc.
void flutter::CanvasPath::addPolygon | ( | const tonic::Float32List & | points, |
bool | close | ||
) |
Definition at line 203 of file path.cc.
void flutter::CanvasPath::addRect | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom | ||
) |
Definition at line 175 of file path.cc.
void flutter::CanvasPath::addRRect | ( | const RRect & | rrect | ) |
Definition at line 209 of file path.cc.
void flutter::CanvasPath::arcTo | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom, | ||
double | startAngle, | ||
double | sweepAngle, | ||
bool | forceMoveTo | ||
) |
Definition at line 125 of file path.cc.
void flutter::CanvasPath::arcToPoint | ( | double | arcEndX, |
double | arcEndY, | ||
double | radiusX, | ||
double | radiusY, | ||
double | xAxisRotation, | ||
bool | isLargeArc, | ||
bool | isClockwiseDirection | ||
) |
Definition at line 140 of file path.cc.
void flutter::CanvasPath::clone | ( | Dart_Handle | path_handle | ) |
Definition at line 325 of file path.cc.
void flutter::CanvasPath::close | ( | ) |
void flutter::CanvasPath::conicTo | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
double | w | ||
) |
Definition at line 109 of file path.cc.
bool flutter::CanvasPath::contains | ( | double | x, |
double | y | ||
) |
|
inlinestatic |
Definition at line 31 of file path.h.
|
inlinestatic |
void flutter::CanvasPath::cubicTo | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
double | x3, | ||
double | y3 | ||
) |
Definition at line 87 of file path.cc.
void flutter::CanvasPath::extendWithPath | ( | CanvasPath * | path, |
double | dx, | ||
double | dy | ||
) |
void flutter::CanvasPath::extendWithPathAndMatrix | ( | CanvasPath * | path, |
double | dx, | ||
double | dy, | ||
Dart_Handle | matrix4_handle | ||
) |
Definition at line 256 of file path.cc.
tonic::Float32List flutter::CanvasPath::getBounds | ( | ) |
Definition at line 308 of file path.cc.
void flutter::CanvasPath::lineTo | ( | double | x, |
double | y | ||
) |
void flutter::CanvasPath::moveTo | ( | double | x, |
double | y | ||
) |
bool flutter::CanvasPath::op | ( | CanvasPath * | path1, |
CanvasPath * | path2, | ||
int | operation | ||
) |
Definition at line 318 of file path.cc.
|
inline |
void flutter::CanvasPath::quadraticBezierTo | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2 | ||
) |
Definition at line 72 of file path.cc.
void flutter::CanvasPath::relativeArcToPoint | ( | double | arcEndDeltaX, |
double | arcEndDeltaY, | ||
double | radiusX, | ||
double | radiusY, | ||
double | xAxisRotation, | ||
bool | isLargeArc, | ||
bool | isClockwiseDirection | ||
) |
Definition at line 158 of file path.cc.
void flutter::CanvasPath::relativeConicTo | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
double | w | ||
) |
Definition at line 115 of file path.cc.
void flutter::CanvasPath::relativeCubicTo | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
double | x3, | ||
double | y3 | ||
) |
Definition at line 98 of file path.cc.
void flutter::CanvasPath::relativeLineTo | ( | double | x, |
double | y | ||
) |
void flutter::CanvasPath::relativeMoveTo | ( | double | x, |
double | y | ||
) |
void flutter::CanvasPath::relativeQuadraticBezierTo | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2 | ||
) |
Definition at line 78 of file path.cc.
void flutter::CanvasPath::reset | ( | ) |
void flutter::CanvasPath::setFillType | ( | int | fill_type | ) |
void flutter::CanvasPath::shift | ( | Dart_Handle | path_handle, |
double | dx, | ||
double | dy | ||
) |
void flutter::CanvasPath::transform | ( | Dart_Handle | path_handle, |
Dart_Handle | matrix4_handle | ||
) |
Definition at line 298 of file path.cc.