diff options
Diffstat (limited to 'include/mbgl/util')
-rw-r--r-- | include/mbgl/util/geo.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/util/geo.hpp b/include/mbgl/util/geo.hpp index 04aa1e1bfa..edd40e73ca 100644 --- a/include/mbgl/util/geo.hpp +++ b/include/mbgl/util/geo.hpp @@ -221,6 +221,9 @@ public: EdgeInsets(const double t, const double l, const double b, const double r) : top(t), left(l), bottom(b), right(r) {} + bool isFlush() const { + return top == 0 && left == 0 && bottom == 0 && right == 0; + } void operator+=(const EdgeInsets& o) { top += o.top; |