Lines Matching defs:rect
52 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 300);
53 EXPECT_NE(nullptr, rect);
54 OH_Drawing_RectDestroy(rect);
66 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 300);
67 EXPECT_NE(nullptr, rect);
75 bool ret = OH_Drawing_RectIntersect(rect, otherOne);
78 ret = OH_Drawing_RectIntersect(rect, otherTwo);
81 OH_Drawing_RectDestroy(rect);
87 * @tc.desc: test for get height of rect.
94 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 400, 800);
95 float height = OH_Drawing_RectGetHeight(rect);
97 OH_Drawing_RectDestroy(rect);
102 * @tc.desc: test for get width of rect.
109 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 400, 800);
110 float width = OH_Drawing_RectGetWidth(rect);
112 OH_Drawing_RectDestroy(rect);
117 * @tc.desc: test for set and get of rect.
124 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 400, 800);
125 OH_Drawing_RectSetLeft(rect, 10);
126 OH_Drawing_RectSetTop(rect, 10);
127 OH_Drawing_RectSetRight(rect, 300);
128 OH_Drawing_RectSetBottom(rect, 400);
129 float left = OH_Drawing_RectGetLeft(rect);
130 float top = OH_Drawing_RectGetTop(rect);
131 float right = OH_Drawing_RectGetRight(rect);
132 float bottom = OH_Drawing_RectGetBottom(rect);
137 OH_Drawing_RectDestroy(rect);
142 * @tc.desc: test for Copy of rect.