#include <CCGeometry.h>
Public Member Functions | |
operator Vec2 () const | |
Conversion from Vec2 to Size. More... | |
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) |
Set the width and height of Size. More... | |
bool | equals (const Size &target) const |
Check if two size is the same. More... | |
local | equals ( local target) |
Check if two size is the same. More... | |
Size () | |
Constructor. More... | |
Size () | |
Constructor. More... | |
Size () | |
Constructor. More... | |
Size (float width, float height) | |
Size ( var width, var height) | |
Size ( local width, local height) | |
Size (const Size &other) | |
Size ( var other) | |
Size ( local other) | |
Size (const Vec2 &point) | |
Size ( var point) | |
Size ( local point) |
Public Attributes | |
float | width |
Width of the Size. More... | |
var | width |
Width of the Size. More... | |
local | width |
Width of the Size. More... | |
float | height |
Height of the Size. More... | |
var | height |
Height of the Size. More... | |
local | height |
Height of the Size. More... | |
Static Public Attributes | |
static const Size | ZERO |
Size(0,0). More... | |
local | ZERO |
Size(0,0). More... | |
Size | ( | ) |
Constructor.
width | Width of the size. |
height | Height of the size. |
other | Copy constructor. |
point | Conversion from a point. |
var Size | ( | ) |
Constructor.
width | Width of the size. |
height | Height of the size. |
other | Copy constructor. |
point | Conversion from a point. |
local Size | ( | ) |
Constructor.
width | Width of the size. |
height | Height of the size. |
other | Copy constructor. |
point | Conversion from a point. |
Size | ( | float | width, |
float | height | ||
) |
var Size | ( | var | width, |
var | height | ||
) |
local Size | ( | local | width, |
local | height | ||
) |
var Size | ( | var | other | ) |
local Size | ( | local | other | ) |
|
explicit |
|
explicit |
bool equals | ( | const Size & | target | ) | const |
Check if two size is the same.
local equals | ( | local | target | ) |
Check if two size is the same.
Size operator* | ( | float | a | ) | const |
Size operator/ | ( | float | a | ) | const |
void setSize | ( | float | width, |
float | height | ||
) |
Set the width and height of Size.
float height |
Height of the Size.
var height |
Height of the Size.
local height |
Height of the Size.
float width |
Width of the Size.
var width |
Width of the Size.
local width |
Width of the Size.
|
static |
Size(0,0).
|
static |
Size(0,0).
|
static |
Size(0,0).