diff options
| author | Niko Kiirala <niko@kiirala.com> | 2006-06-21 16:04:22 +0000 |
|---|---|---|
| committer | kiirala <kiirala@users.sourceforge.net> | 2006-06-21 16:04:22 +0000 |
| commit | d331e75a28fc513289d24bc0dc10ef7be26da888 (patch) | |
| tree | 2b9cae58f7256a2e12625068a54299911859e63e /src/libnr/nr-rect.cpp | |
| parent | it seems we don't have "required" anymore (diff) | |
| download | inkscape-d331e75a28fc513289d24bc0dc10ef7be26da888.tar.gz inkscape-d331e75a28fc513289d24bc0dc10ef7be26da888.zip | |
svg-filters branch merged back to head
(bzr r1252)
Diffstat (limited to 'src/libnr/nr-rect.cpp')
| -rw-r--r-- | src/libnr/nr-rect.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libnr/nr-rect.cpp b/src/libnr/nr-rect.cpp index 0a8287bde..6d881e7b0 100644 --- a/src/libnr/nr-rect.cpp +++ b/src/libnr/nr-rect.cpp @@ -150,6 +150,17 @@ nr_rect_d_matrix_transform(NRRect *d, NRRect const *s, NRMatrix const *m) return nr_rect_d_matrix_transform(d, s, *m); } +/** Enlarges the rectangle given amount of pixels to all directions */ +NRRectL * +nr_rect_l_enlarge(NRRectL *d, int amount) +{ + d->x0 -= amount; + d->y0 -= amount; + d->x1 += amount; + d->y1 += amount; + return d; +} + namespace NR { Rect::Rect(const Point &p0, const Point &p1) |
