Lines Matching defs:rect
45 * @tc.desc: test for get height of rect.
52 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 2160, 4096);
53 float height = OH_Drawing_RectGetHeight(rect);
55 OH_Drawing_RectDestroy(rect);
60 * @tc.desc: test for get width of rect.
67 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 2160, 4096);
68 float width = OH_Drawing_RectGetWidth(rect);
70 OH_Drawing_RectDestroy(rect);
75 * @tc.desc: test for set and get of rect.
82 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 400, 800);
83 OH_Drawing_RectSetLeft(rect, 10);
84 OH_Drawing_RectSetTop(rect, 10);
85 OH_Drawing_RectSetRight(rect, 2160);
86 OH_Drawing_RectSetBottom(rect, 4096);
87 float left = OH_Drawing_RectGetLeft(rect);
88 float top = OH_Drawing_RectGetTop(rect);
89 float right = OH_Drawing_RectGetRight(rect);
90 float bottom = OH_Drawing_RectGetBottom(rect);
95 OH_Drawing_RectDestroy(rect);
100 * @tc.desc: test for Copy of rect.