| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* From pp_point.idl modified Sat Jul 16 16:50:26 2011. */ | 6 /* From pp_point.idl modified Wed Aug 10 14:06:40 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PP_POINT_H_ | 8 #ifndef PPAPI_C_PP_POINT_H_ |
| 9 #define PPAPI_C_PP_POINT_H_ | 9 #define PPAPI_C_PP_POINT_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
| 12 #include "ppapi/c/pp_stdint.h" | 12 #include "ppapi/c/pp_stdint.h" |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * @file | 15 * @file |
| 16 * This file defines the API to create a 2 dimensional point. | 16 * This file defines the API to create a 2 dimensional point. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 */ | 53 */ |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * @addtogroup Functions | 56 * @addtogroup Functions |
| 57 * @{ | 57 * @{ |
| 58 */ | 58 */ |
| 59 | 59 |
| 60 /** | 60 /** |
| 61 * PP_MakePoint() creates a <code>PP_Point</code> given the x and y coordinates | 61 * PP_MakePoint() creates a <code>PP_Point</code> given the x and y coordinates |
| 62 * as int32_t values. | 62 * as int32_t values. |
| 63 * |
| 63 * @param[in] x An int32_t value representing a horizontal coordinate of a | 64 * @param[in] x An int32_t value representing a horizontal coordinate of a |
| 64 * point, starting with 0 as the left-most coordinate. | 65 * point, starting with 0 as the left-most coordinate. |
| 65 * @param[in] y An int32_t value representing a vertical coordinate of a point, | 66 * @param[in] y An int32_t value representing a vertical coordinate of a point, |
| 66 * starting with 0 as the top-most coordinate. | 67 * starting with 0 as the top-most coordinate. |
| 68 * |
| 67 * @return A <code>PP_Point</code> structure. | 69 * @return A <code>PP_Point</code> structure. |
| 68 */ | 70 */ |
| 69 PP_INLINE struct PP_Point PP_MakePoint(int32_t x, int32_t y) { | 71 PP_INLINE struct PP_Point PP_MakePoint(int32_t x, int32_t y) { |
| 70 struct PP_Point ret; | 72 struct PP_Point ret; |
| 71 ret.x = x; | 73 ret.x = x; |
| 72 ret.y = y; | 74 ret.y = y; |
| 73 return ret; | 75 return ret; |
| 74 } | 76 } |
| 75 | 77 |
| 76 PP_INLINE struct PP_FloatPoint PP_MakeFloatPoint(float x, float y) { | 78 PP_INLINE struct PP_FloatPoint PP_MakeFloatPoint(float x, float y) { |
| 77 struct PP_FloatPoint ret; | 79 struct PP_FloatPoint ret; |
| 78 ret.x = x; | 80 ret.x = x; |
| 79 ret.y = y; | 81 ret.y = y; |
| 80 return ret; | 82 return ret; |
| 81 } | 83 } |
| 82 /** | 84 /** |
| 83 * @} | 85 * @} |
| 84 */ | 86 */ |
| 85 | 87 |
| 86 #endif /* PPAPI_C_PP_POINT_H_ */ | 88 #endif /* PPAPI_C_PP_POINT_H_ */ |
| 87 | 89 |
| OLD | NEW |