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