lottie/vector: refactor VPathMesure to handle offset .
[platform/core/uifw/lottie-player.git] / src / vector / vpathmesure.h
1 #ifndef VPATHMESURE_H
2 #define VPATHMESURE_H
3
4 #include "vpath.h"
5
6 V_BEGIN_NAMESPACE
7
8 class VPathMesure {
9 public:
10     void  setStart(float start){mStart = start;}
11     void  setEnd(float end){mEnd = end;}
12     void  setOffset(float offset){mOffset = offset;}
13     VPath trim(const VPath &path);
14 private:
15     float mStart{0.0f};
16     float mEnd{1.0f};
17     float mOffset{0.0f};
18 };
19
20 V_END_NAMESPACE
21
22 #endif  // VPATHMESURE_H