MCPcopy Create free account
hub / github.com/bwapi/bwapi / setText

Method setText

bwapi/BWAPI/Source/BW/Dialog.cpp:355–366  ·  view source on GitHub ↗

------------------- SET TEXT --------------------

Source from the content-addressed store, hash-verified

353 }
354 // ------------------- SET TEXT --------------------
355 bool dialog::setText(char *pszStr)
356 {
357 if ( this && pszStr )
358 {
359 if ( this->wCtrlType == ctrls::cEDIT && this->pszText)
360 strcpy_s(this->pszText, 255, pszStr);
361 else
362 this->pszText = pszStr;
363 return true;
364 }
365 return false;
366 }
367 // ------------------- GET TEXT --------------------
368 const char *dialog::getText() const
369 {

Callers 4

onSendTextMethod · 0.80
onReceiveTextMethod · 0.80
onMenuFrameMethod · 0.80
makeEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected