MCPcopy Create free account
hub / github.com/MyGUI/mygui / setEditPassword

Method setEditPassword

MyGUIEngine/src/MyGUI_EditBox.cpp:1241–1267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1239 }
1240
1241 void EditBox::setEditPassword(bool _password)
1242 {
1243 if (mModePassword == _password)
1244 return;
1245 mModePassword = _password;
1246
1247 if (mModePassword)
1248 {
1249 if (mClientText != nullptr)
1250 {
1251 mPasswordText = mClientText->getCaption();
1252 mClientText->setCaption(UString(mTextLength, '*'));
1253 }
1254 }
1255 else
1256 {
1257 if (mClientText != nullptr)
1258 {
1259 mClientText->setCaption(mPasswordText);
1260 mPasswordText.clear();
1261 }
1262 }
1263 // обновляем по размерам
1264 updateView();
1265 // сбрасываем историю
1266 commandResetHistory();
1267 }
1268
1269 void EditBox::setText(const UString& _caption, bool _history)
1270 {

Callers 2

Calls 3

UStringFunction · 0.85
setCaptionMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected