コード例 #1
0
ファイル: CATextField.cpp プロジェクト: boaass/CrossApp
CATextField* CATextField::createWithLayout(const DLayout& layout)
{
    CATextField* textField = new CATextField();
    if (textField && textField->initWithLayout(layout))
    {
        textField->autorelease();
        return textField;
    }
    CC_SAFE_DELETE(textField);
    return NULL;
}
コード例 #2
0
ファイル: CATextField.cpp プロジェクト: Brian1900/CrossApp
CATextField* CATextField::createWithFrame(const CCRect& frame)
{
    CATextField *text = new CATextField();
    if (text && text->initWithFrame(frame))
    {
        text->autorelease();
        return text;
    }
    CC_SAFE_DELETE(text);
    return NULL;
}
コード例 #3
0
ファイル: CATextField.cpp プロジェクト: DeltaYang/CrossApp
CATextField* CATextField::create(CCRect frame)
{
    CATextField *text = new CATextField();
    if (text && text->initWithTextFieldFrame(frame))
    {
        //text->initWithTextFrame(frame);
        text->autorelease();
        return text;
    }
    CC_SAFE_DELETE(text);
    return NULL;
}
コード例 #4
0
ファイル: CATextField.cpp プロジェクト: Brian1900/CrossApp
CATextField* CATextField::createWithCenter(const CCRect& rect)
{
    CATextField* textField = new CATextField();
    
    if (textField && textField->initWithCenter(rect))
    {
        textField->autorelease();
        return textField;
    }
    
    CC_SAFE_DELETE(textField);
    return NULL;
}