Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUi_CoordinateSystemUtils.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://floralicense.org/license/
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file        FUi_CoordinateSystemUtils.h
20  * @brief       This is the header file for the _CoordinateSystemUtils class.
21  *
22  * This header file contains the declarations of the _CoordinateSystemUtils class.
23  */
24
25 #ifndef _FUI_INTERNAL_COORDINATE_SYSTEM_UTILS_H_
26 #define _FUI_INTERNAL_COORDINATE_SYSTEM_UTILS_H_
27
28 #include <FBaseSysLog.h>
29 #include <FGrp_CoordinateSystem.h>
30
31 namespace Tizen { namespace Ui {
32
33 class _OSP_EXPORT_ _CoordinateSystemUtils
34 {
35 public:
36         // Transform Utilities
37         static Tizen::Graphics::Rectangle Transform(const Tizen::Graphics::Rectangle& rect);
38         static Tizen::Graphics::Rectangle Transform(const Tizen::Graphics::Point& point, const Tizen::Graphics::Dimension& dim);
39         static Tizen::Graphics::Dimension Transform(const Tizen::Graphics::Dimension& dim);
40         static Tizen::Graphics::Point Transform(const Tizen::Graphics::Point& point);
41         static int HorizontalTransform(int scalar);
42         static int VerticalTransform(int scalar);
43
44
45         // Inverse Transform Utilities
46         static Tizen::Graphics::Rectangle InverseTransform(const Tizen::Graphics::Rectangle& rect);
47         static Tizen::Graphics::Rectangle InverseTransform(const Tizen::Graphics::Point& point, const Tizen::Graphics::Dimension& dim);
48         static Tizen::Graphics::Dimension InverseTransform(const Tizen::Graphics::Dimension& dim);
49         static Tizen::Graphics::Point InverseTransform(const Tizen::Graphics::Point& point);
50         static int InverseHorizontalTransform(int scalar);
51         static int InverseVerticalTransform(int scalar);
52
53
54 private:
55         _CoordinateSystemUtils(void);
56         ~_CoordinateSystemUtils(void);
57
58         _CoordinateSystemUtils(const _CoordinateSystemUtils&);
59         _CoordinateSystemUtils& operator =(const _CoordinateSystemUtils&);
60
61         static Tizen::Graphics::_ICoordinateSystemTransformer* GetTransformer(void);
62         static Tizen::Graphics::_ICoordinateSystemTransformer* GetInverseTransformer(void);
63
64 private:
65         static Tizen::Graphics::_CoordinateSystem* __pCoordinateSystemInstance;
66
67 }; //class _CoordinateSystemUtils
68
69 }} // Tizen::Ui
70
71 #endif //_FUI_INTERNAL_COORDINATE_SYSTEM_UTILS_H_