OLD | NEW |
1 /* Copyright (c) 2010 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. |
11 * 0,0 is the upper-left starting coordinate. | 11 * 0,0 is the upper-left starting coordinate. |
(...skipping 28 matching lines...) Expand all Loading... |
40 /** | 40 /** |
41 * @} | 41 * @} |
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 PP_Point given the x and y coordinates as int32_t | 50 * PP_MakePoint() creates a <code>PP_Point</code> given the x and y coordinates |
51 * values. | 51 * as int32_t values. |
52 * @param[in] x An int32_t value representing a horizontal coordinate of a | 52 * @param[in] x An int32_t value representing a horizontal coordinate of a |
53 * point, starting with 0 as the left-most coordinate. | 53 * point, starting with 0 as the left-most coordinate. |
54 * @param[in] y An int32_t value representing a vertical coordinate of a point, | 54 * @param[in] y An int32_t value representing a vertical coordinate of a point, |
55 * starting with 0 as the top-most coordinate. | 55 * starting with 0 as the top-most coordinate. |
56 * @return A PP_Point structure. | 56 * @return A <code>PP_Point</code> structure. |
57 */ | 57 */ |
58 PP_INLINE struct PP_Point PP_MakePoint(int32_t x, int32_t y) { | 58 PP_INLINE struct PP_Point PP_MakePoint(int32_t x, int32_t y) { |
59 struct PP_Point ret; | 59 struct PP_Point ret; |
60 ret.x = x; | 60 ret.x = x; |
61 ret.y = y; | 61 ret.y = y; |
62 return ret; | 62 return ret; |
63 } | 63 } |
64 /** | 64 /** |
65 * @} | 65 * @} |
66 */ | 66 */ |
67 | 67 |
68 #endif /* PPAPI_C_PP_POINT_H_ */ | 68 #endif /* PPAPI_C_PP_POINT_H_ */ |
69 | 69 |
OLD | NEW |