mirror of https://github.com/axmolengine/axmol.git
Merge branch 'improvement/COC-3' of https://github.com/zhouxiaoxiaoxujian/cocos2d-x into improveUITextField
Conflicts: cocos/ui/UITextField.h
This commit is contained in:
commit
d46025af64
|
@ -564,6 +564,11 @@ const std::string& TextField::getStringValue()const
|
|||
{
|
||||
return _textFieldRenderer->getString();
|
||||
}
|
||||
|
||||
int TextField::getStringLength() const {
|
||||
return _textFieldRenderer->getStringLength();
|
||||
}
|
||||
|
||||
|
||||
bool TextField::onTouchBegan(Touch *touch, Event *unusedEvent)
|
||||
{
|
||||
|
|
|
@ -150,8 +150,9 @@ public:
|
|||
void setMaxLengthEnabled(bool enable);
|
||||
bool isMaxLengthEnabled()const;
|
||||
void setMaxLength(int length);
|
||||
|
||||
int getMaxLength()const;
|
||||
|
||||
int getStringLength() const;
|
||||
void setPasswordEnabled(bool enable);
|
||||
bool isPasswordEnabled()const;
|
||||
void setPasswordStyleText(const char* styleText);
|
||||
|
|
Loading…
Reference in New Issue