Lines Matching refs:rect
43 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 600);
45 OH_Drawing_RectDestroy(rect);
57 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
58 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 600);
61 // 3. Call OH_Drawing_RectSetLeft to set the x-coordinate of the top-left corner of rect
62 OH_Drawing_RectSetLeft(rect, 0);
63 // 4. Call OH_Drawing_RectSetTop to set the y-coordinate of the top-left corner of rect
64 OH_Drawing_RectSetTop(rect, 0);
65 // 5. Call OH_Drawing_RectSetRight to set the x-coordinate of the bottom-right corner of rect
66 OH_Drawing_RectSetRight(rect, 200);
67 // 6. Call OH_Drawing_RectSetBottom to set the y-coordinate of the bottom-right corner of rect
68 OH_Drawing_RectSetBottom(rect, 200);
76 bool ret = OH_Drawing_RectIntersect(rect, other);
79 OH_Drawing_RectDestroy(rect);
92 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
93 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 600);
102 OH_Drawing_RectIntersect(rect, nullptr);
105 OH_Drawing_RectDestroy(rect);
118 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
119 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
122 // 3. Call OH_Drawing_RectSetLeft to set the x-coordinate of the top-left corner of rect
123 OH_Drawing_RectSetLeft(rect, 0);
124 // 4. Call OH_Drawing_RectSetTop to set the y-coordinate of the top-left corner of rect
125 OH_Drawing_RectSetTop(rect, 0);
126 // 5. Call OH_Drawing_RectSetRight to set the x-coordinate of the bottom-right corner of rect
127 OH_Drawing_RectSetRight(rect, 200);
128 // 6. Call OH_Drawing_RectSetBottom to set the y-coordinate of the bottom-right corner of rect
129 OH_Drawing_RectSetBottom(rect, 200);
136 bool ret = OH_Drawing_RectJoin(rect, other);
139 OH_Drawing_RectDestroy(rect);
152 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
153 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
162 OH_Drawing_RectJoin(rect, nullptr);
165 OH_Drawing_RectDestroy(rect);
178 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
179 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
180 // 2. Call OH_Drawing_RectSetLeft to set the x-coordinate of the top-left corner of rect
181 OH_Drawing_RectSetLeft(rect, 100);
182 // 3. Call OH_Drawing_RectGetLeft to get the x-coordinate of the top-left corner of rect, Returns the value set
184 float left = OH_Drawing_RectGetLeft(rect);
187 OH_Drawing_RectDestroy(rect);
199 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
200 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
206 OH_Drawing_RectSetLeft(rect, 0.00);
208 OH_Drawing_RectDestroy(rect);
220 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
221 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
223 OH_Drawing_RectSetLeft(rect, 100);
224 // 3. Call OH_Drawing_RectGetLeft to get the x-coordinate of the top-left corner of rect, Returns the value set
226 float left = OH_Drawing_RectGetLeft(rect);
229 OH_Drawing_RectDestroy(rect);
241 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
243 OH_Drawing_RectSetLeft(rect, i * 10);
244 float left = OH_Drawing_RectGetLeft(rect);
247 OH_Drawing_RectDestroy(rect);
259 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
260 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
261 // 2. Call OH_Drawing_RectSetTop to set the y-coordinate of the top-left corner of rect
262 OH_Drawing_RectSetTop(rect, 100);
263 // 3. Call OH_Drawing_RectGetTop to get the y-coordinate of the top-left corner of rect, Returns the value set in
265 float top = OH_Drawing_RectGetTop(rect);
268 OH_Drawing_RectDestroy(rect);
280 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
281 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
287 OH_Drawing_RectSetTop(rect, 0.00);
289 OH_Drawing_RectDestroy(rect);
301 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
302 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
304 OH_Drawing_RectSetTop(rect, 100);
305 // 3. Call OH_Drawing_RectGetTop to get the y-coordinate of the top-left corner of rect, Returns the value set in
307 float top = OH_Drawing_RectGetTop(rect);
310 OH_Drawing_RectDestroy(rect);
322 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
323 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
324 // 2. Loop to call OH_Drawing_RectSetTop to set the y-coordinate of the top-left corner of rect 10 times (each time
327 OH_Drawing_RectSetTop(rect, i * 10);
328 // 3. Loop to call OH_Drawing_RectGetTop to get the y-coordinate of the top-left corner of rect 10 times, Each
330 float top = OH_Drawing_RectGetTop(rect);
333 // 3. Loop to call OH_Drawing_RectGetTop to get the y-coordinate of the top-left corner of rect 10 times, Each time
336 OH_Drawing_RectSetTop(rect, 10);
337 // 3. Loop to call OH_Drawing_RectGetTop to get the y-coordinate of the top-left corner of rect 10 times, Each
339 float top = OH_Drawing_RectGetTop(rect);
343 OH_Drawing_RectDestroy(rect);
355 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
356 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
357 // 2. Call OH_Drawing_RectSetRight to set the x-coordinate of the bottom-right corner of rect
358 OH_Drawing_RectSetRight(rect, 300);
359 // 3. Call OH_Drawing_RectGetRight to get the x-coordinate of the bottom-right corner of rect, Returns the value set
361 float right = OH_Drawing_RectGetRight(rect);
364 OH_Drawing_RectDestroy(rect);
376 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
377 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
383 OH_Drawing_RectSetRight(rect, 0.00);
385 OH_Drawing_RectDestroy(rect);
397 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
398 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
400 OH_Drawing_RectSetRight(rect, 100);
401 // 3. Call OH_Drawing_RectGetRight to get the x-coordinate of the bottom-right corner of rect, Returns the value set
403 float right = OH_Drawing_RectGetRight(rect);
406 OH_Drawing_RectDestroy(rect);
418 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
419 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
420 // 2. Loop to call OH_Drawing_RectSetRight to set the x-coordinate of the bottom-right corner of rect 10 times (each
423 OH_Drawing_RectSetRight(rect, i * 10);
424 // 3. Loop to call OH_Drawing_RectGetRight to get the x-coordinate of the bottom-right corner of rect 10 times,
426 float right = OH_Drawing_RectGetRight(rect);
429 // 3. Loop to call OH_Drawing_RectGetRight to get the x-coordinate of the bottom-right corner of rect 10 times, Each
432 OH_Drawing_RectSetRight(rect, 10);
433 // 3. Loop to call OH_Drawing_RectGetRight to get the x-coordinate of the bottom-right corner of rect 10 times,
435 float right = OH_Drawing_RectGetRight(rect);
439 OH_Drawing_RectDestroy(rect);
451 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
452 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
453 // 2. Call OH_Drawing_RectSetBottom to set the y-coordinate of the bottom-right corner of rect
454 OH_Drawing_RectSetBottom(rect, 300);
455 // 3. Call OH_Drawing_RectGetBottom to get the y-coordinate of the bottom-right corner of rect, 3. Returns the value
457 float bottom = OH_Drawing_RectGetBottom(rect);
460 OH_Drawing_RectDestroy(rect);
472 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
473 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
479 OH_Drawing_RectSetBottom(rect, 0.00);
481 OH_Drawing_RectDestroy(rect);
493 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
494 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
496 OH_Drawing_RectSetBottom(rect, 100);
497 // 3. Call OH_Drawing_RectGetBottom to get the y-coordinate of the bottom-right corner of rect
498 float bottom = OH_Drawing_RectGetBottom(rect);
501 OH_Drawing_RectDestroy(rect);
513 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
516 OH_Drawing_RectSetBottom(rect, i * 10);
517 float bottom = OH_Drawing_RectGetBottom(rect);
521 OH_Drawing_RectDestroy(rect);
533 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
534 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
535 // 2. Call OH_Drawing_RectSetLeft to set the x-coordinate of the top-left corner of rect
536 OH_Drawing_RectSetLeft(rect, 100);
537 // 3. Call OH_Drawing_RectGetLeft to get the x-coordinate of the top-left corner of rect
538 float left = OH_Drawing_RectGetLeft(rect);
541 OH_Drawing_RectDestroy(rect);
553 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
554 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
559 OH_Drawing_RectDestroy(rect);
571 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
572 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
573 // 2. Call OH_Drawing_RectSetTop to set the y-coordinate of the top-left corner of rect
574 OH_Drawing_RectSetTop(rect, 100);
575 // 3. Call OH_Drawing_RectGetTop to get the y-coordinate of the top-left corner of rect
576 float top = OH_Drawing_RectGetTop(rect);
579 OH_Drawing_RectDestroy(rect);
591 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
592 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
597 OH_Drawing_RectDestroy(rect);
609 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
610 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
611 // 2. Call OH_Drawing_RectSetRight to set the x-coordinate of the bottom-right corner of rect
612 OH_Drawing_RectSetRight(rect, 300);
613 // 3. Call OH_Drawing_RectGetRight to get the x-coordinate of the bottom-right corner of rect
614 float right = OH_Drawing_RectGetRight(rect);
617 OH_Drawing_RectDestroy(rect);
629 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
630 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
636 OH_Drawing_RectDestroy(rect);
648 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
649 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
650 // 2. Call OH_Drawing_RectSetBottom to set the y-coordinate of the bottom-right corner of rect
651 OH_Drawing_RectSetBottom(rect, 300);
652 // 3. Call OH_Drawing_RectGetBottom to get the y-coordinate of the bottom-right corner of rect, the return value
654 float bottom = OH_Drawing_RectGetBottom(rect);
657 OH_Drawing_RectDestroy(rect);
669 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
670 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
676 OH_Drawing_RectDestroy(rect);
688 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
689 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
690 // 2. Call OH_Drawing_RectSetLeft to set the x-coordinate of the top-left corner of rect
691 OH_Drawing_RectSetLeft(rect, 0);
692 // 3. Call OH_Drawing_RectSetTop to set the y-coordinate of the top-left corner of rect
693 OH_Drawing_RectSetTop(rect, 0);
694 // 4. Call OH_Drawing_RectSetRight to set the x-coordinate of the bottom-right corner of rect
695 OH_Drawing_RectSetRight(rect, 200);
696 // 5. Call OH_Drawing_RectSetBottom to set the y-coordinate of the bottom-right corner of rect
697 OH_Drawing_RectSetBottom(rect, 200);
700 float height = OH_Drawing_RectGetHeight(rect);
703 OH_Drawing_RectDestroy(rect);
715 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
716 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
722 OH_Drawing_RectDestroy(rect);
734 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
735 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
737 OH_Drawing_RectSetLeft(rect, 0);
739 OH_Drawing_RectSetTop(rect, 0);
741 OH_Drawing_RectSetRight(rect, 200);
743 OH_Drawing_RectSetBottom(rect, 200);
746 float width = OH_Drawing_RectGetWidth(rect);
749 OH_Drawing_RectDestroy(rect);
761 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
762 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
768 OH_Drawing_RectDestroy(rect);
780 // 1. Call OH_Drawing_RectCreate to create a rectangle object rect
783 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, width, height);
785 OH_Drawing_RectSetLeft(rect, 0);
787 OH_Drawing_RectSetTop(rect, 0);
789 OH_Drawing_RectSetRight(rect, width);
791 OH_Drawing_RectSetBottom(rect, height);
794 float getWidth = OH_Drawing_RectGetWidth(rect);
797 OH_Drawing_RectDestroy(rect);
892 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
894 OH_Drawing_RectDestroy(rect);
907 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(0, 0, 200, 200);
912 OH_Drawing_RectDestroy(rect);