/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_path.cpp | 409 void SkiaPath::PathMeasureUpdate(bool forceClosed) in PathMeasureUpdate() argument 414 forceClosed_ = forceClosed; in PathMeasureUpdate() 418 if (isChanged_ || forceClosed != forceClosed_) { in PathMeasureUpdate() 419 pathMeasure_->setPath(&path_, forceClosed); in PathMeasureUpdate() 421 forceClosed_ = forceClosed; in PathMeasureUpdate() 425 scalar SkiaPath::GetLength(bool forceClosed) in GetLength() argument 427 PathMeasureUpdate(forceClosed); in GetLength() 433 PathMeasureUpdate(forceClosed); in GetPositionAndTangent() 448 bool SkiaPath::IsClosed(bool forceClosed) in IsClosed() argument 450 PathMeasureUpdate(forceClosed); in IsClosed() [all …]
|
H A D | skia_path.h | 105 void PathMeasureUpdate(bool forceClosed); 106 scalar GetLength(bool forceClosed) override; 107 …bool GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed) ove… 108 bool IsClosed(bool forceClosed) override; 109 …bool GetMatrix(bool forceClosed, float distance, Matrix* matrix, PathMeasureMatrixFlags flag) over…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/ |
H A D | drawing_path.h | 573 float OH_Drawing_PathGetLength(OH_Drawing_Path*, bool forceClosed); 629 bool OH_Drawing_PathIsClosed(OH_Drawing_Path* path, bool forceClosed); 644 bool OH_Drawing_PathGetPositionTangent(OH_Drawing_Path* path, bool forceClosed, 674 bool OH_Drawing_PathGetMatrix(OH_Drawing_Path* path, bool forceClosed,
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/ |
H A D | path.cpp | 268 scalar Path::GetLength(bool forceClosed) const in GetLength() 270 return impl_->GetLength(forceClosed); in GetLength() 273 bool Path::GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed… in GetPositionAndTangent() 275 return impl_->GetPositionAndTangent(distance, position, tangent, forceClosed); in GetPositionAndTangent() 278 bool Path::IsClosed(bool forceClosed) const in IsClosed() 280 return impl_->IsClosed(forceClosed); in IsClosed() 283 bool Path::GetMatrix(bool forceClosed, float distance, Matrix* matrix, PathMeasureMatrixFlags flag) in GetMatrix() argument 285 return impl_->GetMatrix(forceClosed, distance, matrix, flag); in GetMatrix()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/path_fuzzer/ |
H A D | path_fuzzer.cpp | 144 bool forceClosed = GetObject<bool>(); in PathFuzzTest002() local 145 path.GetPositionAndTangent(distance, ptOne, ptTwo, forceClosed); in PathFuzzTest002() 221 bool forceClosed = GetObject<bool>(); in PathFuzzTest004() local 222 path.GetLength(forceClosed); in PathFuzzTest004() 223 path.IsClosed(forceClosed); in PathFuzzTest004() 226 …path.GetMatrix(forceClosed, distance, &matrix, static_cast<PathMeasureMatrixFlags>(flags % MATRIXF… in PathFuzzTest004()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_path.cpp | 527 float OH_Drawing_PathGetLength(OH_Drawing_Path* cPath, bool forceClosed) in OH_Drawing_PathGetLength() argument 534 return path->GetLength(forceClosed); in OH_Drawing_PathGetLength() 537 bool OH_Drawing_PathIsClosed(OH_Drawing_Path* cPath, bool forceClosed) in OH_Drawing_PathIsClosed() argument 544 return path->IsClosed(forceClosed); in OH_Drawing_PathIsClosed() 547 bool OH_Drawing_PathGetPositionTangent(OH_Drawing_Path* cPath, bool forceClosed, in OH_Drawing_PathGetPositionTangent() argument 557 return path->GetPositionAndTangent(distance, *position, *tangent, forceClosed); in OH_Drawing_PathGetPositionTangent() 575 bool OH_Drawing_PathGetMatrix(OH_Drawing_Path* cPath, bool forceClosed, in OH_Drawing_PathGetMatrix() argument 588 … return path->GetMatrix(forceClosed, distance, matrix, static_cast<PathMeasureMatrixFlags>(flag)); in OH_Drawing_PathGetMatrix()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | path_impl.h | 100 virtual scalar GetLength(bool forceClosed) = 0; 101 …bool GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed) = 0; 102 virtual bool IsClosed(bool forceClosed) = 0; 103 …virtual bool GetMatrix(bool forceClosed, float distance, Matrix* matrix, PathMeasureMatrixFlags fl…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw/ |
H A D | path.h | 481 scalar GetLength(bool forceClosed) const; 491 …bool GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed) con… 498 bool IsClosed(bool forceClosed) const; 500 bool GetMatrix(bool forceClosed, float distance, Matrix* matrix,
|
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/rosen/ |
H A D | testing_path.h | 109 virtual float GetLength(bool forceClosed) const in GetLength() argument 115 float distance, TestingPoint& position, TestingPoint& tangent, bool forceClosed) const in GetPositionAndTangent() argument
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/ |
H A D | drawing__path_8h.md | 73 …athgetlength) ([OH_Drawing_Path](_drawing.md#oh_drawing_path) \*, bool forceClosed) | 获取当前路径的长度。 | 81 …hisclosed) ([OH_Drawing_Path](_drawing.md#oh_drawing_path) \*path, bool forceClosed) | 获取路径是否闭合。 | 82 …ntangent) ([OH_Drawing_Path](_drawing.md#oh_drawing_path) \*path, bool forceClosed, float distance… 84 …etmatrix) ([OH_Drawing_Path](_drawing.md#oh_drawing_path) \*path, bool forceClosed, float distance…
|
H A D | _drawing.md | 452 …oh_drawing_pathgetlength) ([OH_Drawing_Path](#oh_drawing_path) \*, bool forceClosed) | 获取当前路径的长度。 | 455 …_drawing_pathisclosed) ([OH_Drawing_Path](#oh_drawing_path) \*path, bool forceClosed) | 获取路径是否闭合。 | 458 …awing_pathgetmatrix) ([OH_Drawing_Path](#oh_drawing_path) \*path, bool forceClosed, float distance… 4189 bool OH_Drawing_PathIsClosed (OH_Drawing_Path* path, bool forceClosed ) 4209 | forceClosed | 表示是否按照闭合路径测量,true表示测量时路径会被强制视为已闭合,false表示会根据路径的实际闭合状态测量。 | 4219 bool OH_Drawing_PathGetPositionTangent (OH_Drawing_Path* path, bool forceClosed, float distance, OH… 4239 | forceClosed | 表示是否按照闭合路径测量,true表示测量时路径会被强制视为已闭合,false表示会根据路径的实际闭合状态测量。 | 4285 bool OH_Drawing_PathGetMatrix (OH_Drawing_Path* path, bool forceClosed, float distance, OH_Drawing_… 4307 | forceClosed | 表示是否按照闭合路径测量,true表示测量时路径会被强制视为已闭合,false表示会根据路径的实际闭合状态测量。 | 10705 float OH_Drawing_PathGetLength (OH_Drawing_Path* , bool forceClosed ) [all …]
|
H A D | js-apis-graphics-drawing.md | 1042 getLength(forceClosed: boolean): number 1052 | forceClosed | boolean | 是 | 表示是否按照闭合路径测量,true表示测量时路径会被强制视为已闭合,false表示会根据路径的实际闭合状态测量。| 1072 getPositionAndTangent(forceClosed: boolean, distance: number, position: common2D.Point, tangent: co… 1082 | forceClosed | boolean | 是 | 表示是否按照闭合路径测量,true表示测量时路径会被强制视为已闭合,false表示会根据路径的实际闭合状态测量。 … 1149 getMatrix(forceClosed: boolean, distance: number, matrix: Matrix, flags: PathMeasureMatrixFlags): b… 1159 | forceClosed | boolean | 是 | 表示是否按照闭合路径测量,true表示测量时路径会被强制视为已闭合,false表示会根据路径的实际闭合状态测量。 …
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/path_napi/ |
H A D | js_path.cpp | 730 bool forceClosed = false; in OnGetLength() local 731 GET_BOOLEAN_PARAM(ARGC_ZERO, forceClosed); in OnGetLength() 732 double len = m_path->GetLength(forceClosed); in OnGetLength() 746 bool forceClosed = false; in OnGetPositionAndTangent() local 747 GET_BOOLEAN_PARAM(ARGC_ZERO, forceClosed); in OnGetPositionAndTangent() 768 bool result = m_path->GetPositionAndTangent(distance, position, tangent, forceClosed); in OnGetPositionAndTangent() 789 bool forceClosed = false; in OnGetMatrix() local 790 GET_BOOLEAN_PARAM(ARGC_ZERO, forceClosed); in OnGetMatrix() 807 forceClosed, in OnGetMatrix()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/ |
H A D | drawing__path_8h.md | 73 …athgetlength) ([OH_Drawing_Path](_drawing.md#oh_drawing_path) \*, bool forceClosed) | Obtains the … 81 …isclosed) ([OH_Drawing_Path](_drawing.md#oh_drawing_path) \*path, bool forceClosed) | Checks wheth… 82 …ntangent) ([OH_Drawing_Path](_drawing.md#oh_drawing_path) \*path, bool forceClosed, float distance… 84 …etmatrix) ([OH_Drawing_Path](_drawing.md#oh_drawing_path) \*path, bool forceClosed, float distance…
|
H A D | _drawing.md | 452 …h_drawing_pathgetlength) ([OH_Drawing_Path](#oh_drawing_path) \*, bool forceClosed) | Obtains the … 455 …rawing_pathisclosed) ([OH_Drawing_Path](#oh_drawing_path) \*path, bool forceClosed) | Checks wheth… 458 …awing_pathgetmatrix) ([OH_Drawing_Path](#oh_drawing_path) \*path, bool forceClosed, float distance… 4234 bool OH_Drawing_PathIsClosed (OH_Drawing_Path* path, bool forceClosed ) 4254 | forceClosed | Whether the path is measured as a closed path. The value **true** means that the pa… 4264 bool OH_Drawing_PathGetPositionTangent (OH_Drawing_Path* path, bool forceClosed, float distance, OH… 4284 | forceClosed | Whether the path is measured as a closed path. The value **true** means that the pa… 4330 bool OH_Drawing_PathGetMatrix (OH_Drawing_Path* path, bool forceClosed, float distance, OH_Drawing_… 4352 | forceClosed | Whether the path is measured as a closed path. The value **true** means that the pa… 10750 float OH_Drawing_PathGetLength (OH_Drawing_Path* , bool forceClosed ) [all …]
|
H A D | js-apis-graphics-drawing.md | 1042 getLength(forceClosed: boolean): number 1052 | forceClosed | boolean | Yes | Whether the path is measured as a closed path. The value **true** … 1072 getPositionAndTangent(forceClosed: boolean, distance: number, position: common2D.Point, tangent: co… 1082 | forceClosed | boolean | Yes | Whether the path is measured as a closed path. The value **true** … 1149 getMatrix(forceClosed: boolean, distance: number, matrix: Matrix, flags: PathMeasureMatrixFlags): b… 1159 | forceClosed | boolean | Yes | Whether the path is measured as a closed path. The value **true** …
|