1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-26 19:19:16 +02:00

Various ENC rendering improvements

This commit is contained in:
2023-03-24 22:54:53 +01:00
parent 54d6016b1a
commit dbe407d9d9
10 changed files with 87 additions and 72 deletions

View File

@ -15,9 +15,10 @@ public:
bool operator!=(const Range &other) const
{return _min != other._min || _max != other._max;}
int size() const {return (_max - _min);}
int min() const {return _min;}
int max() const {return _max;}
int size() const {return (_max - _min);}
int mid() const {return _min + size()/2;}
bool isValid() const {return size() >= 0;}
bool isNull() const {return _min == 0 && _max == 0;}