예제 #1
0
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;
}
예제 #2
0
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;
}
예제 #3
0
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;
}
예제 #4
0
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;
}
예제 #5
0
CAStepper* CAStepper::create()
{
    CAStepper* page = new CAStepper();
    
    if (page && page->init())
    {
        page->autorelease();
        return page;
    }
    
    CC_SAFE_DELETE(page);
    return NULL;
}