common: code refactoring
[platform/core/graphics/tizenvg.git] / src / lib / tvgCommon.h
1 /*
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *  Licensed under the Apache License, Version 2.0 (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://www.apache.org/licenses/LICENSE-2.0
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 _TVG_COMMON_H_
18 #define _TVG_COMMON_H_
19
20 #include "config.h"
21
22 #include <iostream>
23 #include <cassert>
24 #include <vector>
25 #include <math.h>
26 #include <float.h>
27 #include <string.h>
28 #include "thorvg.h"
29
30 using namespace std;
31 using namespace tvg;
32
33 #define IMPL pImpl.get()
34 #define SCENE_IMPL scene->pImpl.get()
35 #define SHAPE_IMPL shape->pImpl.get()
36
37 #define PAINT_ID_SHAPE 0
38 #define PAINT_ID_SCENE 1
39
40 #define FILL_ID_LINEAR 0
41 #define FILL_ID_RADIAL 1
42
43 #include "tvgBezier.h"
44 #include "tvgLoader.h"
45 #include "tvgLoaderMgr.h"
46 #include "tvgRender.h"
47 #include "tvgPaint.h"
48 #include "tvgShapePath.h"
49 #include "tvgShapeImpl.h"
50 #include "tvgSceneImpl.h"
51
52 #endif //_TVG_COMMON_H_