MCPcopy Create free account
hub / github.com/axmolengine/axmol / copySpecialProperties

Method copySpecialProperties

core/ui/UITextField.cpp:773–794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773void 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
796void TextField::setTextAreaSize(const Vec2& size)
797{

Callers

nothing calls this directly

Calls 11

setFontSizeFunction · 0.85
setMaxLengthFunction · 0.85
isMaxLengthEnabledMethod · 0.80
getPasswordStyleTextMethod · 0.80
getAttachWithIMEMethod · 0.80
getDetachWithIMEMethod · 0.80
getInsertTextMethod · 0.80
getDeleteBackwardMethod · 0.80
getStringMethod · 0.45
getMaxLengthMethod · 0.45
isPasswordEnabledMethod · 0.45

Tested by

no test coverage detected