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 #ifndef PPAPI_C_PP_POINT_H_ | 5 #ifndef PPAPI_C_PP_POINT_H_ |
6 #define PPAPI_C_PP_POINT_H_ | 6 #define PPAPI_C_PP_POINT_H_ |
7 | 7 |
8 /** | 8 /** |
9 * @file | 9 * @file |
10 * This file defines the API to create a 2 dimensional point. | 10 * This file defines the API to create a 2 dimensional point. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 */ | 42 */ |
43 | 43 |
44 /** | 44 /** |
45 * @addtogroup Functions | 45 * @addtogroup Functions |
46 * @{ | 46 * @{ |
47 */ | 47 */ |
48 | 48 |
49 /** | 49 /** |
50 * PP_MakePoint() creates a <code>PP_Point</code> given the x and y coordinates | 50 * PP_MakePoint() creates a <code>PP_Point</code> given the x and y coordinates |
51 * as int32_t values. | 51 * as int32_t values. |
| 52 * |
52 * @param[in] x An int32_t value representing a horizontal coordinate of a | 53 * @param[in] x An int32_t value representing a horizontal coordinate of a |
53 * point, starting with 0 as the left-most coordinate. | 54 * point, starting with 0 as the left-most coordinate. |
54 * @param[in] y An int32_t value representing a vertical coordinate of a point, | 55 * @param[in] y An int32_t value representing a vertical coordinate of a point, |
55 * starting with 0 as the top-most coordinate. | 56 * starting with 0 as the top-most coordinate. |
| 57 * |
56 * @return A <code>PP_Point</code> structure. | 58 * @return A <code>PP_Point</code> structure. |
57 */ | 59 */ |
58 PP_INLINE struct PP_Point PP_MakePoint(int32_t x, int32_t y) { | 60 PP_INLINE struct PP_Point PP_MakePoint(int32_t x, int32_t y) { |
59 struct PP_Point ret; | 61 struct PP_Point ret; |
60 ret.x = x; | 62 ret.x = x; |
61 ret.y = y; | 63 ret.y = y; |
62 return ret; | 64 return ret; |
63 } | 65 } |
64 /** | 66 /** |
65 * @} | 67 * @} |
66 */ | 68 */ |
67 | 69 |
68 #endif /* PPAPI_C_PP_POINT_H_ */ | 70 #endif /* PPAPI_C_PP_POINT_H_ */ |
69 | 71 |
OLD | NEW |