CAView* CAView::createWithCenter(const DRect& rect) { CAView * pRet = new CAView(); if (pRet && pRet->initWithCenter(rect)) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }
CAView* CAView::createWithColor(const CAColor4B& color4B) { CAView * pRet = new CAView(); if (pRet && pRet->initWithColor(color4B)) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }
CAView * CAView::create(void) { CAView * pRet = new CAView(); if (pRet && pRet->init()) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }