mirror of https://github.com/axmolengine/axmol.git
Add getStringLength() support for UITextField
This commit is contained in:
parent
f4d8e396e2
commit
b74040a2ac
|
@ -564,6 +564,11 @@ const std::string& TextField::getStringValue()
|
|||
{
|
||||
return _textFieldRenderer->getString();
|
||||
}
|
||||
|
||||
int TextField::getStringLength() {
|
||||
return _textFieldRenderer->getStringLength();
|
||||
}
|
||||
|
||||
|
||||
bool TextField::onTouchBegan(Touch *touch, Event *unusedEvent)
|
||||
{
|
||||
|
|
|
@ -140,6 +140,7 @@ public:
|
|||
bool isMaxLengthEnabled();
|
||||
void setMaxLength(int length);
|
||||
int getMaxLength();
|
||||
int getStringLength();
|
||||
void setPasswordEnabled(bool enable);
|
||||
bool isPasswordEnabled();
|
||||
void setPasswordStyleText(const char* styleText);
|
||||
|
|
Loading…
Reference in New Issue