Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
pp_point.h
Go to the documentation of this file.
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 /* From pp_point.idl modified Thu Oct 20 13:57:04 2016. */
7 
8 #ifndef PPAPI_C_PP_POINT_H_
9 #define PPAPI_C_PP_POINT_H_
10 
11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_stdint.h"
13 
28 struct PP_Point {
33  int32_t x;
38  int32_t y;
39 };
40 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Point, 8);
41 
46 struct PP_FloatPoint {
47  float x;
48  float y;
49 };
50 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FloatPoint, 8);
71 PP_INLINE struct PP_Point PP_MakePoint(int32_t x, int32_t y) {
72  struct PP_Point ret;
73  ret.x = x;
74  ret.y = y;
75  return ret;
76 }
77 
78 PP_INLINE struct PP_FloatPoint PP_MakeFloatPoint(float x, float y) {
79  struct PP_FloatPoint ret;
80  ret.x = x;
81  ret.y = y;
82  return ret;
83 }
88 #endif /* PPAPI_C_PP_POINT_H_ */
89 
int32_t y
Definition: pp_point.h:38
Definition: pp_point.h:46
PP_INLINE struct PP_Point PP_MakePoint(int32_t x, int32_t y)
Definition: pp_point.h:71
Definition: pp_point.h:28
int32_t x
Definition: pp_point.h:33