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 FGrpCoordinateSystem.h
20 * @brief This is the header file for the %CoordinateSystem class.
22 * This header file contains the declarations of the %CoordinateSystem class.
25 #ifndef _FGRP_COORDINATE_SYSTEM_H_
26 #define _FGRP_COORDINATE_SYSTEM_H_
29 #include <FGrpDimension.h>
32 namespace Tizen { namespace Graphics
36 * @class CoordinateSystem
37 * @brief This class provides various utility methods for coordinate handling.
41 * The %CoordinateSystem class provides various utility methods for coordinate handling.
44 class _OSP_EXPORT_ CoordinateSystem
48 * Returns the screen resolution in logical coordinates.
52 * @return The screen resolution in logical coordinates
54 static Dimension GetLogicalResolution(void);
57 * Returns the screen resolution in physical coordinates.
61 * @return The screen resolution in physical coordinates
63 static Dimension GetPhysicalResolution(void);
66 * Converts the physical value along x-axis to the logical one.
70 * @return The converted logical value for the physical one
71 * @param[in] physicalX An input physical value to be converted
73 static int ConvertToLogicalX(int physicalX);
76 * Converts the physical value along y-axis to the logical one.
80 * @return The converted logical value for the physical one
81 * @param[in] physicalY An input physical value to be converted
83 static int ConvertToLogicalY(int physicalY);
86 * Converts the logical value along x-axis to the physical one.
90 * @return The converted physical X value
91 * @param[in] logicalX An input logical value to be converted
93 static int ConvertToPhysicalX(int logicalX);
96 * Converts the logical value along y-axis to the physical one.
100 * @return The converted physical Y value
101 * @param[in] logicalY An input logical value to be converted
103 static int ConvertToPhysicalY(int logicalY);
107 // This default constructor is intentionally declared as private because this class cannot be constructed.
109 CoordinateSystem(void);
112 // This destructor is intentionally declared as private because this class cannot be constructed.
114 ~CoordinateSystem(void);
116 }; // CoordinateSystem
118 }} // Tizen::Graphics
120 #endif // _FGRP_COORDINATE_SYSTEM_H_