CAStepper* CAStepper::createWithCenter(const DRect& rect, const CAStepperOrientation& type) { CAStepper* page = new CAStepper(type); if (page && page->initWithCenter(rect)) { page->autorelease(); return page; } CC_SAFE_DELETE(page); return NULL; }
CAStepper* CAStepper::create(const CAStepperOrientation& type) { CAStepper* page = new CAStepper(type); if (page && page->init()) { page->autorelease(); return page; } CC_SAFE_DELETE(page); return NULL; }
CAStepper* CAStepper::createWithFrame(const DRect& rect) { CAStepper* page = new CAStepper(); if (page && page->initWithFrame(rect)) { page->autorelease(); return page; } CC_SAFE_DELETE(page); return NULL; }
CAStepper* CAStepper::createWithLayout(const CrossApp::DLayout &layout, const CAStepperOrientation& type) { CAStepper* page = new CAStepper(type); if (page && page->initWithLayout(layout)) { page->autorelease(); return page; } CC_SAFE_DELETE(page); return NULL; }
CAStepper* CAStepper::create() { CAStepper* page = new CAStepper(); if (page && page->init()) { page->autorelease(); return page; } CC_SAFE_DELETE(page); return NULL; }