#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 | addRSuperellipse (const RSuperellipse *rse) |
| 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 DlPath & | 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< T > | |
| 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 |
| 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< T > | |
| 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 183 of file path.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPath::addOval | ( | double | left, |
| double | top, | ||
| double | right, | ||
| double | bottom | ||
| ) |
Definition at line 177 of file path.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPath::addPath | ( | CanvasPath * | path, |
| double | dx, | ||
| double | dy | ||
| ) |
Definition at line 218 of file path.cc.
References path(), and flutter::SafeNarrow().
| void flutter::CanvasPath::addPathWithMatrix | ( | CanvasPath * | path, |
| double | dx, | ||
| double | dy, | ||
| Dart_Handle | matrix4_handle | ||
| ) |
Definition at line 228 of file path.cc.
References path(), flutter::SafeNarrow(), and flutter::ToSkMatrix().
| void flutter::CanvasPath::addPolygon | ( | const tonic::Float32List & | points, |
| bool | close | ||
| ) |
| void flutter::CanvasPath::addRect | ( | double | left, |
| double | top, | ||
| double | right, | ||
| double | bottom | ||
| ) |
Definition at line 171 of file path.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPath::addRRect | ( | const RRect & | rrect | ) |
Definition at line 204 of file path.cc.
References flutter::RRect::rrect, and flutter::ToSkRRect().
| void flutter::CanvasPath::addRSuperellipse | ( | const RSuperellipse * | rse | ) |
Definition at line 209 of file path.cc.
References flutter::DlPathBuilder::AddRoundSuperellipse(), flutter::RSuperellipse::bounds(), flutter::DlPath::GetSkPath(), impeller::RoundSuperellipse::MakeRectRadii(), flutter::RSuperellipse::radii(), and flutter::DlPathBuilder::TakePath().
| void flutter::CanvasPath::arcTo | ( | double | left, |
| double | top, | ||
| double | right, | ||
| double | bottom, | ||
| double | startAngle, | ||
| double | sweepAngle, | ||
| bool | forceMoveTo | ||
| ) |
Definition at line 121 of file path.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPath::arcToPoint | ( | double | arcEndX, |
| double | arcEndY, | ||
| double | radiusX, | ||
| double | radiusY, | ||
| double | xAxisRotation, | ||
| bool | isLargeArc, | ||
| bool | isClockwiseDirection | ||
| ) |
Definition at line 136 of file path.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPath::clone | ( | Dart_Handle | path_handle | ) |
Definition at line 329 of file path.cc.
| void flutter::CanvasPath::close | ( | ) |
Definition at line 281 of file path.cc.
Referenced by addPolygon().
| void flutter::CanvasPath::conicTo | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| double | w | ||
| ) |
Definition at line 105 of file path.cc.
References flutter::SafeNarrow().
| bool flutter::CanvasPath::contains | ( | double | x, |
| double | y | ||
| ) |
|
inlinestatic |
Definition at line 31 of file path.h.
References flutter::UIDartState::ThrowIfUIOperationsProhibited().
Referenced by clone(), flutter::CanvasPathMeasure::getSegment(), shift(), and transform().
|
inlinestatic |
| void flutter::CanvasPath::cubicTo | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| double | x3, | ||
| double | y3 | ||
| ) |
Definition at line 83 of file path.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPath::extendWithPath | ( | CanvasPath * | path, |
| double | dx, | ||
| double | dy | ||
| ) |
Definition at line 249 of file path.cc.
References path(), and flutter::SafeNarrow().
| void flutter::CanvasPath::extendWithPathAndMatrix | ( | CanvasPath * | path, |
| double | dx, | ||
| double | dy, | ||
| Dart_Handle | matrix4_handle | ||
| ) |
Definition at line 260 of file path.cc.
References path(), flutter::SafeNarrow(), and flutter::ToSkMatrix().
| tonic::Float32List flutter::CanvasPath::getBounds | ( | ) |
Definition at line 312 of file path.cc.
| int flutter::CanvasPath::getFillType | ( | ) |
| void flutter::CanvasPath::lineTo | ( | double | x, |
| double | y | ||
| ) |
Definition at line 58 of file path.cc.
References flutter::SafeNarrow(), x, and y.
| void flutter::CanvasPath::moveTo | ( | double | x, |
| double | y | ||
| ) |
Definition at line 48 of file path.cc.
References flutter::SafeNarrow(), x, and y.
| bool flutter::CanvasPath::op | ( | CanvasPath * | path1, |
| CanvasPath * | path2, | ||
| int | operation | ||
| ) |
Definition at line 322 of file path.cc.
References flutter::Op().
| const DlPath & flutter::CanvasPath::path | ( | ) | const |
Definition at line 336 of file path.cc.
Referenced by addPath(), addPathWithMatrix(), clone(), CreateFrom(), extendWithPath(), extendWithPathAndMatrix(), shift(), and transform().
| void flutter::CanvasPath::quadraticBezierTo | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2 | ||
| ) |
Definition at line 68 of file path.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPath::relativeArcToPoint | ( | double | arcEndDeltaX, |
| double | arcEndDeltaY, | ||
| double | radiusX, | ||
| double | radiusY, | ||
| double | xAxisRotation, | ||
| bool | isLargeArc, | ||
| bool | isClockwiseDirection | ||
| ) |
Definition at line 154 of file path.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPath::relativeConicTo | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| double | w | ||
| ) |
Definition at line 111 of file path.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPath::relativeCubicTo | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| double | x3, | ||
| double | y3 | ||
| ) |
Definition at line 94 of file path.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPath::relativeLineTo | ( | double | x, |
| double | y | ||
| ) |
Definition at line 63 of file path.cc.
References flutter::SafeNarrow(), x, and y.
| void flutter::CanvasPath::relativeMoveTo | ( | double | x, |
| double | y | ||
| ) |
Definition at line 53 of file path.cc.
References flutter::SafeNarrow(), x, and y.
| void flutter::CanvasPath::relativeQuadraticBezierTo | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2 | ||
| ) |
Definition at line 74 of file path.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPath::reset | ( | ) |
Definition at line 286 of file path.cc.
Referenced by impeller::compiler::CompilerSkSL::compile().
| void flutter::CanvasPath::setFillType | ( | int | fill_type | ) |
| void flutter::CanvasPath::shift | ( | Dart_Handle | path_handle, |
| double | dx, | ||
| double | dy | ||
| ) |
Definition at line 295 of file path.cc.
References Create(), path(), and flutter::SafeNarrow().
| void flutter::CanvasPath::transform | ( | Dart_Handle | path_handle, |
| Dart_Handle | matrix4_handle | ||
| ) |