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

rename MoveFoo to AdjustFoo in Point/Rect/Size

<sberg> noel_grandin, "MoveLeft" is a somewhat misleading function name
in dd4fc3b1
<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/49818Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 6a3f9de5
......@@ -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;
......
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