Lines Matching refs:path
23 #include "draw/path.h"
54 OH_Drawing_Path* path = OH_Drawing_PathCreate();
55 EXPECT_EQ(path == nullptr, false);
56 OH_Drawing_PathDestroy(path);
193 OH_Drawing_Path* path = OH_Drawing_PathCreate();
195 OH_Drawing_PathAddRect(path, 50, 50, 2160, 4096, OH_Drawing_PathDirection::PATH_DIRECTION_CW);
196 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetWidth(), 2110.0));
197 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetHeight(), 4046.0));
198 OH_Drawing_PathDestroy(path);
210 OH_Drawing_Path* path = OH_Drawing_PathCreate();
214 OH_Drawing_PathAddRoundRect(path, roundRect, OH_Drawing_PathDirection::PATH_DIRECTION_CW);
215 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetWidth(), 2110.0));
216 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetHeight(), 4046.0));
217 OH_Drawing_PathDestroy(path);