projects
/
platform
/
core
/
uifw
/
lottie-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a7ca81
)
lottie/vector: added isEmpty() api in size class.
02/186302/1
author
subhransu mohanty
<sub.mohanty@samsung.com>
Thu, 9 Aug 2018 00:51:43 +0000
(09:51 +0900)
committer
subhransu mohanty
<sub.mohanty@samsung.com>
Thu, 9 Aug 2018 00:51:43 +0000
(09:51 +0900)
Change-Id: Ia49254b2d83c047d268ff7510c058c6b25873564
src/vector/vpoint.h
patch
|
blob
|
history
diff --git
a/src/vector/vpoint.h
b/src/vector/vpoint.h
index
3c94ab0
..
fea5603
100644
(file)
--- a/
src/vector/vpoint.h
+++ b/
src/vector/vpoint.h
@@
-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; }