2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
9 // http://floralicense.org/license/
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.
19 * @file FUi_CoordinateSystemUtils.h
20 * @brief This is the header file for the _CoordinateSystemUtils class.
22 * This header file contains the declarations of the _CoordinateSystemUtils class.
25 #ifndef _FUI_INTERNAL_COORDINATE_SYSTEM_UTILS_H_
26 #define _FUI_INTERNAL_COORDINATE_SYSTEM_UTILS_H_
28 #include <FBaseSysLog.h>
29 #include <FGrp_CoordinateSystem.h>
31 namespace Tizen { namespace Ui {
33 class _OSP_EXPORT_ _CoordinateSystemUtils
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);
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);
55 _CoordinateSystemUtils(void);
56 ~_CoordinateSystemUtils(void);
58 _CoordinateSystemUtils(const _CoordinateSystemUtils&);
59 _CoordinateSystemUtils& operator =(const _CoordinateSystemUtils&);
61 static Tizen::Graphics::_ICoordinateSystemTransformer* GetTransformer(void);
62 static Tizen::Graphics::_ICoordinateSystemTransformer* GetInverseTransformer(void);
65 static Tizen::Graphics::_CoordinateSystem* __pCoordinateSystemInstance;
67 }; //class _CoordinateSystemUtils
71 #endif //_FUI_INTERNAL_COORDINATE_SYSTEM_UTILS_H_