5 #ifndef PPAPI_CPP_SIZE_H_
6 #define PPAPI_CPP_SIZE_H_
8 #include "ppapi/c/pp_size.h"
188 operator PP_FloatSize() {
304 return !(lhs == rhs);
330 return !(lhs == rhs);
333 #endif // PPAPI_CPP_SIZE_H_
bool IsEmpty() const
Definition: size.h:273
void SetSize(float w, float h)
Definition: size.h:256
FloatSize(float w, float h)
Definition: size.h:174
Size()
The default constructor. Initializes the width and height to 0.
Definition: size.h:22
~Size()
Destructor.
Definition: size.h:50
A size of an object based on width and height.
Definition: size.h:149
#define PP_DCHECK(a)
Definition: logging.h:16
const PP_Size & pp_size() const
Definition: size.h:64
FloatSize(const PP_FloatSize &s)
Definition: size.h:163
PP_FloatSize & pp_float_size()
Definition: size.h:205
PP_Size & pp_size()
Definition: size.h:71
void set_width(float w)
Definition: size.h:219
const PP_FloatSize & pp_float_size() const
Definition: size.h:197
~FloatSize()
Destructor.
Definition: size.h:181
int height() const
Definition: size.h:96
void SetSize(int w, int h)
Definition: size.h:122
Size(const PP_Size &s)
Definition: size.h:32
A size of an object based on width and height.
Definition: size.h:18
int GetArea() const
Definition: size.h:114
float GetArea() const
Definition: size.h:248
int width() const
Definition: size.h:78
void set_width(int w)
Definition: size.h:85
void set_height(float h)
Definition: size.h:237
FloatSize()
The default constructor. Initializes the width and height to 0.0f.
Definition: size.h:153
bool IsEmpty() const
Definition: size.h:139
bool operator!=(const pp::Size &lhs, const pp::Size &rhs)
Definition: size.h:303
bool operator==(const pp::Size &lhs, const pp::Size &rhs)
Definition: size.h:292
float width() const
Definition: size.h:212
float height() const
Definition: size.h:230
void set_height(int h)
Definition: size.h:103
void Enlarge(float w, float h)
Definition: size.h:265
void Enlarge(int w, int h)
Definition: size.h:131
Size(int w, int h)
Definition: size.h:43