mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-07 06:43:43 +00:00
lottie/vector: added isEmpty() api in size class.
Change-Id: Ia49254b2d83c047d268ff7510c058c6b25873564
This commit is contained in:
parent
0a7ca8137c
commit
d424320bd4
@ -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; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user