Home
last modified time | relevance | path

Searched refs:forceClosed (Results 1 - 10 of 10) sorted by relevance

/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/
H A Ddrawing_path.h568 * @param forceClosed Indicates whether free to modify/delete the path after this call.
573 float OH_Drawing_PathGetLength(OH_Drawing_Path*, bool forceClosed);
624 * @param forceClosed Whether to close the Path.
629 bool OH_Drawing_PathIsClosed(OH_Drawing_Path* path, bool forceClosed);
636 * @param forceClosed Whether to close the Path.
644 bool OH_Drawing_PathGetPositionTangent(OH_Drawing_Path* path, bool forceClosed,
665 * @param forceClosed Whether to close the Path.
674 bool OH_Drawing_PathGetMatrix(OH_Drawing_Path* path, bool forceClosed,
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_path.cpp409 void SkiaPath::PathMeasureUpdate(bool forceClosed) in PathMeasureUpdate() argument
412 pathMeasure_ = std::make_unique<SkPathMeasure>(path_, forceClosed); in PathMeasureUpdate()
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()
431 bool SkiaPath::GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed) in GetPositionAndTangent() argument
433 PathMeasureUpdate(forceClosed); in GetPositionAndTangent()
448 IsClosed(bool forceClosed) IsClosed() argument
454 GetMatrix(bool forceClosed, float distance, Matrix* matrix, PathMeasureMatrixFlags flag) GetMatrix() argument
[all...]
H A Dskia_path.h105 void PathMeasureUpdate(bool forceClosed);
106 scalar GetLength(bool forceClosed) override;
107 bool GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed) override;
108 bool IsClosed(bool forceClosed) override;
109 bool GetMatrix(bool forceClosed, float distance, Matrix* matrix, PathMeasureMatrixFlags flag) override;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/
H A Dpath.cpp268 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) const 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()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/
H A Dpath_impl.h100 virtual scalar GetLength(bool forceClosed) = 0;
101 virtual 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 flag) = 0;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_path.cpp527 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()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/path_fuzzer/
H A Dpath_fuzzer.cpp144 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 % MATRIXFLAG_SIZE)); in PathFuzzTest004()
/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_path.h110 virtual float GetLength(bool forceClosed) const in GetLength()
116 float distance, TestingPoint& position, TestingPoint& tangent, bool forceClosed) const in GetPositionAndTangent()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw/
H A Dpath.h478 * @param forceClosed Whether to close the Path.
481 scalar GetLength(bool forceClosed) const;
488 * @param forceClosed Whether to close the Path.
491 bool GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed) const;
495 * @param forceClosed Whether to close the Path.
498 bool IsClosed(bool forceClosed) const;
500 bool GetMatrix(bool forceClosed, float distance, Matrix* matrix,
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/path_napi/
H A Djs_path.cpp730 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()

Completed in 10 milliseconds