#include <CCGeometry.h>
Public Member Functions | |
| operator Vec2 () const | |
| operator Vec2 () | |
| operator Vec2 () | |
| Size () | |
| Size () | |
| Size (float width, float height) | |
| Size ( local width, local height) | |
| Size (const Size &other) | |
| Size (const Vec2 &point) | |
| Size & | operator= (const Size &other) |
| Size & | operator= (const Vec2 &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 |
| var | width |
| local | width |
| float | height |
| var | height |
| local | height |
Static Public Attributes | |
| static const Size | ZERO |
| local | ZERO |
| Size | ( | ) |
| local Size | ( | ) |
| Size | ( | float | width, |
| float | height | ||
| ) |
| local Size | ( | local | width, |
| local | height | ||
| ) |
| bool equals | ( | const Size & | target | ) | const |
| local equals | ( | local | target | ) |
|
inline |
|
inline |
|
inline |
| Size operator* | ( | float | a | ) | const |
| Size operator/ | ( | float | a | ) | const |
| void setSize | ( | float | width, |
| float | height | ||
| ) |
| float height |
| var height |
| local height |
| float width |
| var width |
| local width |
|
static |
|
static |
|
static |