Pepper_56_C_interfaces
Pepper_56_C_interfaces
Main Page
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
pp_size.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_size.idl modified Thu Oct 20 13:57:04 2016. */
7
8
#ifndef PPAPI_C_PP_SIZE_H_
9
#define PPAPI_C_PP_SIZE_H_
10
11
#include "
ppapi/c/pp_macros.h
"
12
#include "
ppapi/c/pp_stdint.h
"
13
27
struct
PP_Size
{
29
int32_t
width
;
31
int32_t
height
;
32
};
33
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(
PP_Size
, 8);
34
38
struct
PP_FloatSize
{
40
float
width
;
42
float
height
;
43
};
62
PP_INLINE
struct
PP_Size
PP_MakeSize
(int32_t w, int32_t h) {
63
struct
PP_Size
ret;
64
ret.
width
= w;
65
ret.
height
= h;
66
return
ret;
67
}
68
78
PP_INLINE
struct
PP_FloatSize
PP_MakeFloatSize
(float w, float h) {
79
struct
PP_FloatSize
ret;
80
ret.
width
= w;
81
ret.
height
= h;
82
return
ret;
83
}
87
#endif
/* PPAPI_C_PP_SIZE_H_ */
88
pp_macros.h
PP_MakeFloatSize
PP_INLINE struct PP_FloatSize PP_MakeFloatSize(float w, float h)
Definition:
pp_size.h:78
PP_FloatSize::width
float width
Definition:
pp_size.h:40
PP_FloatSize
Definition:
pp_size.h:38
PP_Size::height
int32_t height
Definition:
pp_size.h:31
PP_MakeSize
PP_INLINE struct PP_Size PP_MakeSize(int32_t w, int32_t h)
Definition:
pp_size.h:62
pp_stdint.h
PP_FloatSize::height
float height
Definition:
pp_size.h:42
PP_Size::width
int32_t width
Definition:
pp_size.h:29
PP_Size
Definition:
pp_size.h:27
ppapi
c
pp_size.h
Generated by
1.8.6