diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-08 15:51:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-09 07:56:12 +0100 |
commit | c07b913cc6f2ad29863c0c9a50bd3b6bdd849569 (patch) | |
tree | dfbd22050ba8b5f0b4a75194dc2d20d9b24d043f /include | |
parent | cdc44358a5a2530eb2c8bb6beb90b00cc8c1b6cb (diff) |
add setter methods to tools::Rectangle
intended to replace the existing methods that return mutable ref
And add the clang rewriter I will use to do most of the work.
Change-Id: If00be13da5c16c07671cedbcfea21528bac33c8a
Reviewed-on: https://gerrit.libreoffice.org/49430
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/gen.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx index ab74f8c6e386..1fb1a283a60e 100644 --- a/include/tools/gen.hxx +++ b/include/tools/gen.hxx @@ -363,6 +363,11 @@ public: long& Top() { return nTop; } long& Bottom() { return nBottom; } + void SetLeft(long v) { nLeft = v; } + void SetRight(long v) { nRight = v; } + void SetTop(long v) { nTop = v; } + void SetBottom(long v) { nBottom = v; } + inline Point TopLeft() const; inline Point TopRight() const; inline Point TopCenter() const; |