MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / onTextFieldAttachWithIME

Method onTextFieldAttachWithIME

Source/TextInputNode.cpp:153–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151};
152
153void TextInputNode::onTextFieldAttachWithIME()
154{
155 if (_displayedLabel && _cursor)
156 {
157 if (_textField->getString().empty())
158 {
159 _displayedLabel->setString("");
160 updateDisplayedLabelScale();
161 }
162 else
163 {
164 _textField->setString(sanitizeString(_textField->getString()));
165 updateDisplayedLabel();
166 }
167
168 _cursor->setVisible(true);
169 }
170
171 if (_delegate)
172 _delegate->textInputOpened(this);
173}
174
175void TextInputNode::onTextFieldDetachWithIME()
176{

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.80
getStringMethod · 0.80
textInputOpenedMethod · 0.80
setStringMethod · 0.45

Tested by

no test coverage detected