cocos2d-x  2.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCSize Class Reference

#include <CCGeometry.h>

Public Member Functions

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

Public Attributes

float width
float height

Constructor & Destructor Documentation

CCSize ( )
CCSize ( float  width,
float  height 
)
CCSize ( const CCSize other)
CCSize ( const CCPoint point)

Member Function Documentation

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

Member Data Documentation

float height
float width

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