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

Interface between Inkscape code (SPItem) and remove-overlaps function. More...

Go to the source code of this file.

Functions

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

Interface between Inkscape code (SPItem) and remove-overlaps function.

Definition in file removeoverlap.cpp.

Function Documentation

◆ removeoverlap()

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