OLD | NEW |
1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 * Defines the API ... | 10 * Defines the API ... |
11 * | |
12 * @addtogroup PP | |
13 * @{ | |
14 */ | 11 */ |
15 | 12 |
16 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
17 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
18 | 15 |
| 16 /** |
| 17 * |
| 18 * @addtogroup Structs |
| 19 * @{ |
| 20 */ |
19 struct PP_Point { | 21 struct PP_Point { |
20 int32_t x; | 22 int32_t x; |
21 int32_t y; | 23 int32_t y; |
22 }; | 24 }; |
23 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Point, 8); | 25 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Point, 8); |
| 26 /** |
| 27 * @} |
| 28 */ |
24 | 29 |
| 30 /** |
| 31 * @addtogroup Functions |
| 32 * @{ |
| 33 */ |
25 PP_INLINE struct PP_Point PP_MakePoint(int32_t x, int32_t y) { | 34 PP_INLINE struct PP_Point PP_MakePoint(int32_t x, int32_t y) { |
26 struct PP_Point ret; | 35 struct PP_Point ret; |
27 ret.x = x; | 36 ret.x = x; |
28 ret.y = y; | 37 ret.y = y; |
29 return ret; | 38 return ret; |
30 } | 39 } |
31 | |
32 /** | 40 /** |
33 * @} | 41 * @} |
34 * End addtogroup PP | |
35 */ | 42 */ |
36 | 43 |
37 #endif /* PPAPI_C_PP_POINT_H_ */ | 44 #endif /* PPAPI_C_PP_POINT_H_ */ |
38 | 45 |
OLD | NEW |