Lines Matching refs:copy
74 * Create a copy of a given RAreaList.
88 * Create a copy of an RAreaList with given amounts cropped off the
290 RAreaList *copy = RAreaListCopy(self);
296 RAreaListSortX(copy);
301 for(int i = 0; i < copy->len - 1; i++) {
302 for(int j = i + 1; j < copy->len; j++) {
303 RAreaList *repl = RAreaHorizontalUnion(©->areas[i], ©->areas[j]);
306 RAreaListDelete(copy, j);
307 RAreaListDelete(copy, i);
308 RAreaListAddList(copy, repl);
317 return copy;
328 RAreaList *copy = RAreaListCopy(self);
332 RAreaListSortY(copy);
334 for(int i = 0; i < copy->len - 1; i++) {
335 for(int j = i + 1; j < copy->len; j++) {
336 RAreaList *repl = RAreaVerticalUnion(©->areas[i], ©->areas[j]);
339 RAreaListDelete(copy, j);
340 RAreaListDelete(copy, i);
341 RAreaListAddList(copy, repl);
350 return copy;