lottie/vector: added isEmpty() api in size class.

Change-Id: Ia49254b2d83c047d268ff7510c058c6b25873564
This commit is contained in:
subhransu mohanty 2018-08-09 09:51:43 +09:00
parent 0a7ca8137c
commit d424320bd4

View File

@ -142,6 +142,7 @@ class VSize {
public:
constexpr inline VSize() noexcept : mw(0), mh(0) {}
constexpr inline VSize(int w, int h) noexcept : mw(w), mh(h) {}
bool isEmpty() const {return (mw <= 0 || mh <= 0);}
constexpr inline int width() const noexcept { return mw; }
constexpr inline int height() const noexcept { return mh; }
inline void setWidth(int w) { mw = w; }