Kaydet (Commit) c07b913c authored tarafından Noel Grandin's avatar Noel Grandin

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/49430Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst cdc44358
This diff is collapsed.
...@@ -363,6 +363,11 @@ public: ...@@ -363,6 +363,11 @@ public:
long& Top() { return nTop; } long& Top() { return nTop; }
long& Bottom() { return nBottom; } 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 TopLeft() const;
inline Point TopRight() const; inline Point TopRight() const;
inline Point TopCenter() const; inline Point TopCenter() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment