diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/gen.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx index 5d6ff5ea66b8..0d9a81ebdcee 100644 --- a/include/tools/gen.hxx +++ b/include/tools/gen.hxx @@ -197,6 +197,12 @@ public: void setWidth(long nWidth) { nA = nWidth; } void setHeight(long nHeight) { nB = nHeight; } + void extendBy(long x, long y) + { + nA += x; + nB += y; + } + Pair const & toPair() const { return *this; } Pair & toPair() { return *this; } |