Lines Matching refs:src

809     // 1. Call OH_Drawing_RectCreate to create a rectangle object src
810 OH_Drawing_Rect *src = OH_Drawing_RectCreate(0, 0, 200, 200);
813 // 3. Call OH_Drawing_RectSetLeft to set the x-coordinate of the top-left corner of src
814 OH_Drawing_RectSetLeft(src, 100);
815 // 4. Call OH_Drawing_RectSetTop to set the y-coordinate of the top-left corner of src
816 OH_Drawing_RectSetTop(src, 100);
817 // 5. Call OH_Drawing_RectSetRight to set the x-coordinate of the bottom-right corner of src
818 OH_Drawing_RectSetRight(src, 300);
819 // 6. Call OH_Drawing_RectSetBottom to set the y-coordinate of the bottom-right corner of src
820 OH_Drawing_RectSetBottom(src, 300);
821 // 7. Call OH_Drawing_RectCopy to copy the source rectangle object src to the destination rectangle object dst
822 OH_Drawing_RectCopy(src, dst);
824 // the value set in src
828 // the value set in src
832 // same as the value set in src
836 // same as the value set in src
839 // 12. Call OH_Drawing_RectSetLeft to modify the x-coordinate of the top-left corner of src
840 OH_Drawing_RectSetLeft(src, 200);
841 // 13. Call OH_Drawing_RectSetTop to modify the y-coordinate of the top-left corner of src
842 OH_Drawing_RectSetTop(src, 200);
844 // as the previous value (indicating that the modification in src does not affect the result in dst)
848 // the previous value (indicating that the modification in src does not affect the result in dst)
852 OH_Drawing_RectDestroy(src);
865 // 1. Call OH_Drawing_RectCreate to create a rectangle object src
866 OH_Drawing_Rect *src = OH_Drawing_RectCreate(0, 0, 200, 200);
875 OH_Drawing_RectCopy(src, nullptr);
878 OH_Drawing_RectDestroy(src);