cocos2d-x  3.0-rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Size Class Reference

#include <CCGeometry.h>

Public Member Functions

 Size ()
 Size (float width, float height)
 Size (const Size &other)
 Size (const Point &point)
Sizeoperator= (const Size &other)
Sizeoperator= (const Point &point)
Size operator+ (const Size &right) const
Size operator- (const Size &right) const
Size operator* (float a) const
Size operator/ (float a) const
void setSize (float width, float height)
bool equals (const Size &target) const

Public Attributes

float width
float height

Static Public Attributes

static const Size ZERO

Constructor & Destructor Documentation

Size ( )
Size ( float  width,
float  height 
Size ( const Size other)
Size ( const Point point)

Member Function Documentation

bool equals ( const Size target) const
Size operator* ( float  a) const
Size operator+ ( const Size right) const
Size operator- ( const Size right) const
Size operator/ ( float  a) const
Size& operator= ( const Size other)
Size& operator= ( const Point point)
void setSize ( float  width,
float  height 

Member Data Documentation

float height
float width
const Size ZERO

The documentation for this class was generated from the following file: