6ff63f5fa240cf32069cf1063f25f2ca3ac20b66
[platform/core/uifw/lottie-player.git] / src / vector / vpathmesure.h
1 /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * Licensed under the Flora License, Version 1.1 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef VPATHMESURE_H
18 #define VPATHMESURE_H
19
20 #include "vpath.h"
21
22 V_BEGIN_NAMESPACE
23
24 class VPathMesure {
25 public:
26     void  setStart(float start){mStart = start;}
27     void  setEnd(float end){mEnd = end;}
28     VPath trim(const VPath &path);
29 private:
30     float mStart{0.0f};
31     float mEnd{1.0f};
32 };
33
34 V_END_NAMESPACE
35
36 #endif  // VPATHMESURE_H