#include <path_measure.h>
Public Member Functions | |
| ~CanvasPathMeasure () override | |
| void | setPath (const CanvasPath *path, bool isClosed) |
| double | getLength (int contour_index) |
| tonic::Float32List | getPosTan (int contour_index, double distance) |
| void | getSegment (Dart_Handle path_handle, int contour_index, double start_d, double stop_d, bool start_with_move_to) |
| bool | isClosed (int contour_index) |
| bool | nextContour () |
| const SkContourMeasureIter & | pathMeasure () const |
Public Member Functions inherited from flutter::RefCountedDartWrappable< CanvasPathMeasure > | |
| 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 | Create (Dart_Handle wrapper, const CanvasPath *path, bool forceClosed) |
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) |
Definition at line 21 of file path_measure.h.
|
override |
Definition at line 42 of file path_measure.cc.
|
static |
Definition at line 23 of file path_measure.cc.
References flutter::path, pathMeasure(), and flutter::UIDartState::ThrowIfUIOperationsProhibited().
| double flutter::CanvasPathMeasure::getLength | ( | int | contour_index | ) |
Definition at line 48 of file path_measure.cc.
| tonic::Float32List flutter::CanvasPathMeasure::getPosTan | ( | int | contour_index, |
| double | distance | ||
| ) |
Definition at line 56 of file path_measure.cc.
References flutter::SafeNarrow().
| void flutter::CanvasPathMeasure::getSegment | ( | Dart_Handle | path_handle, |
| int | contour_index, | ||
| double | start_d, | ||
| double | stop_d, | ||
| bool | start_with_move_to | ||
| ) |
Definition at line 81 of file path_measure.cc.
References flutter::CanvasPath::Create(), flutter::CanvasPath::CreateFrom(), and flutter::SafeNarrow().
| bool flutter::CanvasPathMeasure::isClosed | ( | int | contour_index | ) |
Definition at line 100 of file path_measure.cc.
Referenced by setPath().
| bool flutter::CanvasPathMeasure::nextContour | ( | ) |
Definition at line 108 of file path_measure.cc.
|
inline |
| void flutter::CanvasPathMeasure::setPath | ( | const CanvasPath * | path, |
| bool | isClosed | ||
| ) |