/** \file
* Interface between Inkscape code (SPItem) and remove-overlaps function.
*/
/*
* Authors:
* Tim Dwyer <tgdwyer@gmail.com>
* Abhishek Sharma
*
* Copyright (C) 2005 Authors
*
* Released under GNU LGPL. Read the file 'COPYING' for more information.
*/
#include <utility>
#include "sp-item.h"
#include "sp-item-transform.h"
#include "libvpsc/generate-constraints.h"
#include "libvpsc/remove_rectangle_overlap.h"
#include "removeoverlap.h"
namespace {
struct Record {
};
}
/**
* Takes a list of inkscape items and moves them as little as possible
* such that rectangular bounding boxes are separated by at least xGap
* horizontally and yGap vertically
*/
++it)
{
if (item_box) {
// A negative gap is allowed, but will lead to problems when the gap is larger than
// the bounding box (in either X or Y direction, or both); min will have become max
// now, which cannot be handled by Rectangle() which is called below. And how will
// removeRectangleOverlap handle such a case?
// That's why we will enforce some boundaries on min and max here:
}
}
}
}
}
++it )
{
}
}