MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetText

Method GetText

ui/UIEdit.cpp:219–227  ·  view source on GitHub ↗

retrieve text in edit control.

Source from the content-addressed store, hash-verified

217
218// retrieve text in edit control.
219void UIEdit::GetText(char *buffer, int len) {
220 // ASSERT(strlen(m_TextBuf) < (unsigned)len);
221 if (!m_TextBuf) {
222 buffer[0] = '\0';
223 return;
224 }
225 strncpy(buffer, m_TextBuf, len - 1);
226 buffer[len - 1] = 0;
227}
228
229// sets font of control (default is window's font.)
230void UIEdit::SetFont(int font) { m_FontHandle = font; }

Callers 6

MultiGameOptionsMenuFunction · 0.45
UnrealizeMethod · 0.45
UpdateChangesMethod · 0.45
UpdateReturnValuesMethod · 0.45
EditGetTextFunction · 0.45
OldEditGetTextFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected