| 771 | } |
| 772 | |
| 773 | void TextField::copySpecialProperties(Widget* widget) |
| 774 | { |
| 775 | TextField* textField = dynamic_cast<TextField*>(widget); |
| 776 | if (textField) |
| 777 | { |
| 778 | setString(textField->_textFieldRenderer->getString()); |
| 779 | setPlaceHolder(textField->getString()); |
| 780 | setFontSize(textField->_fontSize); |
| 781 | setFontName(textField->_fontName); |
| 782 | setMaxLengthEnabled(textField->isMaxLengthEnabled()); |
| 783 | setMaxLength(textField->getMaxLength()); |
| 784 | setPasswordEnabled(textField->isPasswordEnabled()); |
| 785 | setPasswordStyleText(textField->getPasswordStyleText()); |
| 786 | setAttachWithIME(textField->getAttachWithIME()); |
| 787 | setDetachWithIME(textField->getDetachWithIME()); |
| 788 | setInsertText(textField->getInsertText()); |
| 789 | setDeleteBackward(textField->getDeleteBackward()); |
| 790 | _eventCallback = textField->_eventCallback; |
| 791 | _ccEventCallback = textField->_ccEventCallback; |
| 792 | _textFieldEventListener = textField->_textFieldEventListener; |
| 793 | } |
| 794 | } |
| 795 | |
| 796 | void TextField::setTextAreaSize(const Vec2& size) |
| 797 | { |
nothing calls this directly
no test coverage detected