summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-15 16:15:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 07:28:00 +0100
commit28753a11d4d5198d473660f386176cec5a1b4533 (patch)
tree63ec6a3c2264176247ae4fd1f7a821ffcaf9e052
parent6a3f9de585fc0e8e6191db5210729ae6b3730e7d (diff)
rename MoveFoo to AdjustFoo in Point/Rect/Size
<sberg> noel_grandin, "MoveLeft" is a somewhat misleading function name in dd4fc3b1e3f8a7c69a44c26715b2e3cdb22aede9 <noel_grandin> sberg, better ideas? <sberg> AdjustLeft etc., like the AdjustWidth/Height? <noel_grandin> sberg, sure, np Change-Id: I89e281b5c7421825098e5ad5a3550c774300938c Reviewed-on: https://gerrit.libreoffice.org/49818 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--include/tools/gen.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx
index 0e5289b0765c..38ca77af9046 100644
--- a/include/tools/gen.hxx
+++ b/include/tools/gen.hxx
@@ -82,8 +82,8 @@ public:
long& Y() { return nB; }
void Move( long nHorzMove, long nVertMove );
- void MoveX( long nHorzMove ) { nA += nHorzMove; }
- void MoveY( long nVertMove ) { nB += nVertMove; }
+ void AdjustX( long nHorzMove ) { nA += nHorzMove; }
+ void AdjustY( long nVertMove ) { nB += nVertMove; }
void RotateAround( long& rX, long& rY, short nOrientation ) const;
@@ -404,10 +404,10 @@ public:
/// Move the top and left edges by a delta, preserving width and height
inline void Move( long nHorzMoveDelta, long nVertMoveDelta );
- void MoveLeft( long nHorzMoveDelta ) { nLeft += nHorzMoveDelta; }
- void MoveRight( long nHorzMoveDelta ) { nRight += nHorzMoveDelta; }
- void MoveTop( long nVertMoveDelta ) { nTop += nVertMoveDelta; }
- void MoveBottom( long nVertMoveDelta ) { nBottom += nVertMoveDelta; }
+ void AdjustLeft( long nHorzMoveDelta ) { nLeft += nHorzMoveDelta; }
+ void AdjustRight( long nHorzMoveDelta ) { nRight += nHorzMoveDelta; }
+ void AdjustTop( long nVertMoveDelta ) { nTop += nVertMoveDelta; }
+ void AdjustBottom( long nVertMoveDelta ) { nBottom += nVertMoveDelta; }
inline void SetPos( const Point& rPoint );
void SetSize( const Size& rSize );
inline Size GetSize() const;