2012-04-16 18:58:43 +08:00
|
|
|
#include "CCSpacer.h"
|
|
|
|
|
2012-04-17 11:12:05 +08:00
|
|
|
NS_CC_BEGIN
|
2012-04-16 18:58:43 +08:00
|
|
|
|
|
|
|
CCSpacer* CCSpacer::verticalSpacer(float space)
|
|
|
|
{
|
|
|
|
CCSpacer *pRet = new CCSpacer();
|
|
|
|
pRet->init();
|
|
|
|
pRet->setContentSize(CCSizeMake(0, space));
|
|
|
|
pRet->autorelease();
|
|
|
|
return pRet;
|
|
|
|
}
|
|
|
|
|
|
|
|
CCSpacer* CCSpacer::horizontalSpacer(float space)
|
|
|
|
{
|
|
|
|
CCSpacer *pRet = new CCSpacer();
|
|
|
|
pRet->init();
|
|
|
|
pRet->setContentSize(CCSizeMake(space, 0));
|
|
|
|
pRet->autorelease();
|
|
|
|
return pRet;
|
2012-04-17 11:12:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_CC_END
|