本文整理汇总了C++中CAImageView::autorelease方法的典型用法代码示例。如果您正苦于以下问题:C++ CAImageView::autorelease方法的具体用法?C++ CAImageView::autorelease怎么用?C++ CAImageView::autorelease使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAImageView
的用法示例。
在下文中一共展示了CAImageView::autorelease方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: create
CAImageView* CAImageView::create()
{
CAImageView *pSprite = new CAImageView();
if (pSprite && pSprite->init())
{
pSprite->autorelease();
return pSprite;
}
CC_SAFE_DELETE(pSprite);
return NULL;
}
示例2: createWithSpriteFrame
CAImageView* CAImageView::createWithSpriteFrame(CCSpriteFrame *pSpriteFrame)
{
CAImageView *pobSprite = new CAImageView();
if (pSpriteFrame && pobSprite && pobSprite->initWithSpriteFrame(pSpriteFrame))
{
pobSprite->autorelease();
return pobSprite;
}
CC_SAFE_DELETE(pobSprite);
return NULL;
}
示例3: createWithImage
CAImageView* CAImageView::createWithImage(CAImage* Image, const CCRect& rect)
{
CAImageView *pobSprite = new CAImageView();
if (pobSprite && pobSprite->initWithImage(Image, rect))
{
pobSprite->autorelease();
return pobSprite;
}
CC_SAFE_DELETE(pobSprite);
return NULL;
}
示例4: createWithLayout
CAImageView* CAImageView::createWithLayout(const CrossApp::DLayout &layout)
{
CAImageView * pRet = new CAImageView();
if (pRet && pRet->initWithLayout(layout))
{
pRet->autorelease();
return pRet;
}
CC_SAFE_DELETE(pRet);
return NULL;
}
示例5: createWithCenter
CAImageView* CAImageView::createWithCenter(const DRect& rect)
{
CAImageView * pRet = new CAImageView();
if (pRet && pRet->initWithCenter(rect))
{
pRet->autorelease();
return pRet;
}
CC_SAFE_DELETE(pRet);
return NULL;
}
示例6: createWithFrame
CAImageView* CAImageView::createWithFrame(const CCRect& rect)
{
CAImageView * pRet = new CAImageView();
if (pRet && pRet->init())
{
pRet->setFrame(rect);
pRet->autorelease();
return pRet;
}
CC_SAFE_DELETE(pRet);
return NULL;
}
示例7: createWithImage
NS_CC_BEGIN
CAImageView* CAImageView::createWithImage(CAImage* image)
{
CAImageView *pobSprite = new CAImageView();
if (pobSprite && pobSprite->initWithImage(image))
{
pobSprite->autorelease();
return pobSprite;
}
CC_SAFE_DELETE(pobSprite);
return NULL;
}