diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-27 17:07:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-02 07:24:36 +0100 |
commit | 312c0abcff23a5bc7cf4442359ec48187ec06d48 (patch) | |
tree | 9f4b8be273c1560018f035a73294fcab9b1476a7 /vcl/osx/salnativewidgets.cxx | |
parent | 451ed3d595c5e2a32d820e1751e890f894832a9c (diff) |
drop old tools/gen methods in vcl
Change-Id: I863ce5ae46ae90f06780261fa17b087a7153c807
Reviewed-on: https://gerrit.libreoffice.org/50445
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/osx/salnativewidgets.cxx')
-rw-r--r-- | vcl/osx/salnativewidgets.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx index 811960f1b92e..9e5008703549 100644 --- a/vcl/osx/salnativewidgets.cxx +++ b/vcl/osx/salnativewidgets.cxx @@ -126,19 +126,19 @@ static bool AquaGetScrollRect( /* TODO: int nScreen, */ ControlPart nPart, switch( nPart ) { case ControlPart::ButtonUp: - rResultRect.Bottom() = rResultRect.Top(); + rResultRect.SetBottom( rResultRect.Top() ); break; case ControlPart::ButtonDown: - rResultRect.Top() = rResultRect.Bottom(); + rResultRect.SetTop( rResultRect.Bottom() ); break; case ControlPart::ButtonLeft: - rResultRect.Right() = rResultRect.Left(); + rResultRect.SetRight( rResultRect.Left() ); break; case ControlPart::ButtonRight: - rResultRect.Left() = rResultRect.Right(); + rResultRect.SetLeft( rResultRect.Right() ); break; case ControlPart::TrackHorzArea: @@ -1120,9 +1120,9 @@ bool AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa { tools::Rectangle aRect( aCtrlBoundRect ); if( aRect.GetHeight() < 16 ) - aRect.Bottom() = aRect.Top() + 9; // values taken from HIG for medium progress + aRect.SetBottom( aRect.Top() + 9 ); // values taken from HIG for medium progress else - aRect.Bottom() = aRect.Top() + 15; // values taken from HIG for large progress + aRect.SetBottom( aRect.Top() + 15 ); // values taken from HIG for large progress rNativeBoundingRegion = aRect; rNativeContentRegion = aRect; toReturn = true; @@ -1132,7 +1132,7 @@ bool AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa case ControlType::IntroProgress: { tools::Rectangle aRect( aCtrlBoundRect ); - aRect.Bottom() = aRect.Top() + INTRO_PROGRESS_HEIGHT; // values taken from HIG for medium progress + aRect.SetBottom( aRect.Top() + INTRO_PROGRESS_HEIGHT ); // values taken from HIG for medium progress rNativeBoundingRegion = aRect; rNativeContentRegion = aRect; toReturn = true; @@ -1277,17 +1277,17 @@ bool AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa tools::Rectangle aRect(aCtrlBoundRect); if( nStyle == DrawFrameStyle::DoubleIn ) { - aRect.Left() += 1; - aRect.Top() += 1; + aRect.AdjustLeft(1); + aRect.AdjustTop(1); //rRect.Right() -= 1; //rRect.Bottom() -= 1; } else { - aRect.Left() += 1; - aRect.Top() += 1; - aRect.Right() -= 1; - aRect.Bottom() -= 1; + aRect.AdjustLeft(1); + aRect.AdjustTop(1); + aRect.AdjustRight(-1); + aRect.AdjustBottom(-1); } rNativeContentRegion = aRect; |