Lines Matching defs:src

53      * Create a new path, copying the contents from the src path.
55 * @param src The path to copy from when initializing the new path
57 public Path(Path src) {
59 if (src != null) {
60 valNative = src.mNativePath;
61 isSimplePath = src.isSimplePath;
62 if (src.rects != null) {
63 rects = new Region(src.rects);
95 /** Replace the contents of this with the contents of src.
97 public void set(@NonNull Path src) {
98 if (this == src) {
101 isSimplePath = src.isSimplePath;
102 native_set(mNativePath, src.mNativePath);
107 if (rects != null && src.rects != null) {
108 rects.set(src.rects);
109 } else if (rects != null && src.rects == null) {
111 } else if (src.rects != null) {
112 rects = new Region(src.rects);
665 * Add a copy of src to the path, offset by (dx,dy)
667 * @param src The path to add as a new contour
670 public void addPath(Path src, float dx, float dy) {
672 native_addPath(mNativePath, src.mNativePath, dx, dy);
676 * Add a copy of src to the path
678 * @param src The path that is appended to the current path
680 public void addPath(Path src) {
682 native_addPath(mNativePath, src.mNativePath);
686 * Add a copy of src to the path, transformed by matrix
688 * @param src The path to add as a new contour
690 public void addPath(Path src, Matrix matrix) {
691 if (!src.isSimplePath) isSimplePath = false;
692 native_addPath(mNativePath, src.mNativePath, matrix.native_instance);
851 private static native void native_addPath(long nPath, long src, float dx, float dy);
852 private static native void native_addPath(long nPath, long src);
853 private static native void native_addPath(long nPath, long src, long matrix);