Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
removeoverlap.h File Reference

Remove overlaps function. More...

Go to the source code of this file.

Functions

void removeoverlap (std::vector< SPItem * > const &items, double xGap, double yGap)
 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.
 

Detailed Description

Remove overlaps function.

Definition in file removeoverlap.h.

Function Documentation

◆ removeoverlap()

void removeoverlap ( std::vector< SPItem * > const &  items,
double  xGap,
double  yGap 
)

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.

Definition at line 48 of file removeoverlap.cpp.

References SPItem::desktopVisualBounds(), item, items, removeoverlaps(), rs, Geom::X, and Geom::Y.

Referenced by object_remove_overlaps().