CATextView* CATextView::createWithCenter(const CCRect& rect) { CATextView *text = new CATextView(); if (text && text->initWithCenter(rect)) { text->autorelease(); return text; } CC_SAFE_DELETE(text); return NULL; }
CATextView* CATextView::createWithCenter(const CCRect& rect) { CATextView* pTextView = new CATextView(); if (pTextView && pTextView->initWithCenter(rect)) { pTextView->autorelease(); return pTextView; } CC_SAFE_DELETE(pTextView); return NULL; }
CATextView* CATextView::createWithFrame(const CCRect& frame) { CATextView *text = new CATextView(); if (text && text->initWithFrame(frame)) { text->autorelease(); return text; } CC_SAFE_DELETE(text); return NULL; }
CATextView* CATextView::createWithLayout(const DLayout& layout) { CATextView* textView = new CATextView(); if (textView&&textView->initWithLayout(layout)) { textView->autorelease(); return textView; } CC_SAFE_RELEASE_NULL(textView); return NULL; }