mirror of https://github.com/axmolengine/axmol.git
issue #2143: Adding CCEditBox::getDelegate.
This commit is contained in:
parent
3acdb327fb
commit
47c8205e39
|
@ -107,6 +107,11 @@ void CCEditBox::setDelegate(CCEditBoxDelegate* pDelegate)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CCEditBoxDelegate* CCEditBox::getDelegate()
|
||||||
|
{
|
||||||
|
return m_pDelegate;
|
||||||
|
}
|
||||||
|
|
||||||
void CCEditBox::setText(const char* pText)
|
void CCEditBox::setText(const char* pText)
|
||||||
{
|
{
|
||||||
if (pText != NULL)
|
if (pText != NULL)
|
||||||
|
|
|
@ -196,9 +196,10 @@ public:
|
||||||
bool initWithSizeAndBackgroundSprite(const CCSize& size, CCScale9Sprite* pNormal9SpriteBg);
|
bool initWithSizeAndBackgroundSprite(const CCSize& size, CCScale9Sprite* pNormal9SpriteBg);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the delegate for edit box.
|
* Gets/Sets the delegate for edit box.
|
||||||
*/
|
*/
|
||||||
void setDelegate(CCEditBoxDelegate* pDelegate);
|
void setDelegate(CCEditBoxDelegate* pDelegate);
|
||||||
|
CCEditBoxDelegate* getDelegate();
|
||||||
/**
|
/**
|
||||||
* Registers a script function that will be called for EditBox events.
|
* Registers a script function that will be called for EditBox events.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue