Home
last modified time | relevance | path

Searched refs:cPath (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_path.cpp73 Path* path = CastToPath(cPath); in OH_Drawing_PathCopy()
83 if (!cPath) { in OH_Drawing_PathDestroy()
86 delete CastToPath(cPath); in OH_Drawing_PathDestroy()
91 Path* path = CastToPath(cPath); in OH_Drawing_PathMoveTo()
101 Path* path = CastToPath(cPath); in OH_Drawing_PathRMoveTo()
111 Path* path = CastToPath(cPath); in OH_Drawing_PathLineTo()
121 Path* path = CastToPath(cPath); in OH_Drawing_PathRLineTo()
132 Path* path = CastToPath(cPath); in OH_Drawing_PathArcTo()
142 Path* path = CastToPath(cPath); in OH_Drawing_PathQuadTo()
152 Path* path = CastToPath(cPath); in OH_Drawing_PathRQuadTo()
[all …]
H A Ddrawing_region.cpp26 static const Path* CastToPath(const OH_Drawing_Path* cPath) in CastToPath() argument
28 return reinterpret_cast<const Path*>(cPath); in CastToPath()
87 bool OH_Drawing_RegionSetPath(OH_Drawing_Region* cRegion, const OH_Drawing_Path* cPath, const OH_Dr… in OH_Drawing_RegionSetPath() argument
90 const Path* path = CastToPath(cPath); in OH_Drawing_RegionSetPath()
H A Ddrawing_canvas.cpp38 static const Path& CastToPath(const OH_Drawing_Path& cPath) in CastToPath() argument
40 return reinterpret_cast<const Path&>(cPath); in CastToPath()
254 void OH_Drawing_CanvasDrawPath(OH_Drawing_Canvas* cCanvas, const OH_Drawing_Path* cPath) in OH_Drawing_CanvasDrawPath() argument
256 if (cPath == nullptr) { in OH_Drawing_CanvasDrawPath()
265 canvas->DrawPath(CastToPath(*cPath)); in OH_Drawing_CanvasDrawPath()
584 void OH_Drawing_CanvasClipPath(OH_Drawing_Canvas* cCanvas, const OH_Drawing_Path* cPath, in OH_Drawing_CanvasClipPath() argument
587 if (cPath == nullptr) { in OH_Drawing_CanvasClipPath()
601 canvas->ClipPath(CastToPath(*cPath), static_cast<ClipOp>(cClipOp), doAntiAlias); in OH_Drawing_CanvasClipPath()
712 void OH_Drawing_CanvasDrawShadow(OH_Drawing_Canvas* cCanvas, OH_Drawing_Path* cPath, OH_Drawing_Poi… in OH_Drawing_CanvasDrawShadow() argument
717 if (canvas == nullptr || cPath == nullptr) { in OH_Drawing_CanvasDrawShadow()
[all …]
H A Ddrawing_pen.cpp32 static const Path* CastToPath(const OH_Drawing_Path* cPath) in CastToPath() argument
34 return reinterpret_cast<const Path*>(cPath); in CastToPath()
37 static Path* CastToPath(OH_Drawing_Path* cPath) in CastToPath() argument
39 return reinterpret_cast<Path*>(cPath); in CastToPath()
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/
H A Ddrawing_c_sample.cpp84 OH_Drawing_Path* cPath = OH_Drawing_PathCreate(); in TestDrawPathPro() local
85 OH_Drawing_PathMoveTo(cPath, aX, aY); in TestDrawPathPro()
86 OH_Drawing_PathLineTo(cPath, bX, bY); in TestDrawPathPro()
87 OH_Drawing_PathLineTo(cPath, cX, cY); in TestDrawPathPro()
88 OH_Drawing_PathLineTo(cPath, dX, dY); in TestDrawPathPro()
89 OH_Drawing_PathLineTo(cPath, eX, eY); in TestDrawPathPro()
90 OH_Drawing_PathClose(cPath); in TestDrawPathPro()
104 OH_Drawing_CanvasDrawPath(cCanvas, cPath); in TestDrawPathPro()
123 OH_Drawing_PathDestroy(cPath); in TestDrawPathPro()
/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_query.c32 static int32_t MallocCertPath(struct CmMutableBlob *cPath, const char *path) in MallocCertPath() argument
35 cPath->data = (uint8_t *)CMMalloc(pathSize); in MallocCertPath()
36 if (cPath->data == NULL) { in MallocCertPath()
40 cPath->size = pathSize; in MallocCertPath()
41 (void)memset_s(cPath->data, pathSize, 0, pathSize); in MallocCertPath()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_text_typography_test.cpp2771 OH_Drawing_Path* cPath = OH_Drawing_PathCreate(); variable
2772 OH_Drawing_PathArcTo(cPath, LEFT_POS, LEFT_POS, RIGHT_POS, RIGHT_POS, 0, SWEEP_DEGREE);
2776 OH_Drawing_CanvasDrawPath(cCanvas, cPath);
2777 OH_Drawing_TypographyPaintOnPath(typography, cCanvas, cPath, ARC_FONT_SIZE, ARC_FONT_SIZE);
2785 OH_Drawing_PathDestroy(cPath);
2814 OH_Drawing_Path* cPath = OH_Drawing_PathCreate(); variable
2815 OH_Drawing_PathArcTo(cPath, LEFT_POS, LEFT_POS, RIGHT_POS, RIGHT_POS, 0, SWEEP_DEGREE);
2819 OH_Drawing_CanvasDrawPath(cCanvas, cPath);
2820 OH_Drawing_TypographyPaintOnPath(typography, cCanvas, cPath, ARC_FONT_SIZE, ARC_FONT_SIZE);
2828 OH_Drawing_PathDestroy(cPath);
/ohos5.0/docs/zh-cn/application-dev/graphics/
H A Ddrawing-guidelines.md286 3. **构造Path形状**。使用drawing_path.h提供的接口完成一个五角星形状的构造cPath
/ohos5.0/docs/en/application-dev/graphics/
H A Ddrawing-guidelines.md292 Use the APIs provided in **drawing_path.h** to construct a pentagram, named **cPath**.