diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-19 15:12:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-19 21:34:46 +0200 |
commit | 3aef606f2758172a27718a06fea0ff9080e4d80f (patch) | |
tree | ad323c90301d80bbb3b68163d8b87e5402b687ed /vcl/inc/regband.hxx | |
parent | 5afba3e12c8d4eb1ebb8e087134eb87593bb017a (diff) |
use tools::Long in vcl
Change-Id: Ice1055021e8568634e9a66ba89d3bb4ef4e731df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104522
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc/regband.hxx')
-rw-r--r-- | vcl/inc/regband.hxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/vcl/inc/regband.hxx b/vcl/inc/regband.hxx index c7b9e611947b..f92976c8a569 100644 --- a/vcl/inc/regband.hxx +++ b/vcl/inc/regband.hxx @@ -37,8 +37,8 @@ Intersection - the Class will process the clipping for the actual band. struct ImplRegionBandSep { ImplRegionBandSep* mpNextSep; - long mnXLeft; - long mnXRight; + tools::Long mnXLeft; + tools::Long mnXRight; bool mbRemoved; }; @@ -48,8 +48,8 @@ enum class LineType { Ascending, Descending }; struct ImplRegionBandPoint { ImplRegionBandPoint* mpNextBandPoint; - long mnX; - long mnLineId; + tools::Long mnX; + tools::Long mnLineId; bool mbEndPoint; LineType meLineType; }; @@ -61,13 +61,13 @@ public: ImplRegionBand* mpPrevBand; // pointer to the previous element of the list (only used temporarily) ImplRegionBandSep* mpFirstSep; // root of the list with x-separations ImplRegionBandPoint* mpFirstBandPoint; // root of the list with lines - long mnYTop; // actual boundary of the band - long mnYBottom; + tools::Long mnYTop; // actual boundary of the band + tools::Long mnYBottom; bool mbTouched : 1; // create y-band with boundaries - ImplRegionBand( long nYTop, long nYBottom ); + ImplRegionBand( tools::Long nYTop, tools::Long nYBottom ); /** copy y-band with all data @param theSourceBand The new ImplRegionBand object will @@ -85,8 +85,8 @@ public: const bool bIgnorePoints = true); ~ImplRegionBand(); - long GetXLeftBoundary() const; - long GetXRightBoundary() const; + tools::Long GetXLeftBoundary() const; + tools::Long GetXRightBoundary() const; // combine overlapping bands void OptimizeBand(); @@ -95,18 +95,18 @@ public: // union with existing separations void ProcessPoints(); // insert point in the list for later processing - bool InsertPoint( long nX, long nLineID, + bool InsertPoint( tools::Long nX, tools::Long nLineID, bool bEndPoint, LineType eLineType ); - void Union( long nXLeft, long nXRight ); - void Intersect( long nXLeft, long nXRight ); - void Exclude( long nXLeft, long nXRight ); - void XOr( long nXLeft, long nXRight ); + void Union( tools::Long nXLeft, tools::Long nXRight ); + void Intersect( tools::Long nXLeft, tools::Long nXRight ); + void Exclude( tools::Long nXLeft, tools::Long nXRight ); + void XOr( tools::Long nXLeft, tools::Long nXRight ); - void MoveX( long nHorzMove ); + void MoveX( tools::Long nHorzMove ); void ScaleX( double fHorzScale ); - bool IsInside( long nX ); + bool IsInside( tools::Long nX ); bool IsEmpty() const { return ((!mpFirstSep) && (!mpFirstBandPoint)); } |