Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1894)

Side by Side Diff: ppapi/c/pp_size.h

Issue 6312098: Updating documentation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_SIZE_H_ 5 #ifndef PPAPI_C_PP_SIZE_H_
6 #define PPAPI_C_PP_SIZE_H_ 6 #define PPAPI_C_PP_SIZE_H_
7 7
8 /** 8 /**
9 * @file 9 * @file
10 * Defines the API ... 10 * This file defines the width and heigh to of a 2 dimenstional rectangle.
11 */ 11 */
12 12
13 #include "ppapi/c/pp_macros.h" 13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h" 14 #include "ppapi/c/pp_stdint.h"
15 15
16 /** 16 /**
17 * @addtogroup Structs 17 * @addtogroup Structs
18 * @{ 18 * @{
19 */ 19 */
20
21 /**
22 * The PP_Size struct contains the size of a 2D rectangle.
23 */
20 struct PP_Size { 24 struct PP_Size {
25 /** This value represents the width of the rectangle. */
21 int32_t width; 26 int32_t width;
27 /** This value represents the height of the rectangle. */
22 int32_t height; 28 int32_t height;
23 }; 29 };
24 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Size, 8); 30 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Size, 8);
25 /** 31 /**
26 * @} 32 * @}
27 */ 33 */
28 34
29 /** 35 /**
30 * @addtogroup Functions 36 * @addtogroup Functions
31 * @{ 37 * @{
32 */ 38 */
39
40 /**
41 * PP_MakeSize() places two 32 bit integers inside a PP_Size structure.
dmichael(do not use this one) 2011/02/02 23:36:51 wording like 'creates a PP_Size...'
jond 2011/02/03 17:28:11 Done.
42 * @param[in] w A 32 bit value representing a width.
43 * @param[in] h A 32 bit value representing a height.
44 * @return A PP_Size structure.
45 */
33 PP_INLINE struct PP_Size PP_MakeSize(int32_t w, int32_t h) { 46 PP_INLINE struct PP_Size PP_MakeSize(int32_t w, int32_t h) {
34 struct PP_Size ret; 47 struct PP_Size ret;
35 ret.width = w; 48 ret.width = w;
36 ret.height = h; 49 ret.height = h;
37 return ret; 50 return ret;
38 } 51 }
39 /** 52 /**
40 * @} 53 * @}
41 */ 54 */
42 #endif /* PPAPI_C_PP_SIZE_H_ */ 55 #endif /* PPAPI_C_PP_SIZE_H_ */
43 56
OLDNEW
« ppapi/c/pp_rect.h ('K') | « ppapi/c/pp_rect.h ('k') | ppapi/c/pp_time.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698