MCPcopy Create free account
hub / github.com/crossuo/crossuo / Paste

Method Paste

src/TextEngine/EntryText.cpp:249–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void CEntryText::Paste()
250{
251 auto chBuffer = SDL_GetClipboardText();
252 if (chBuffer != nullptr && (strlen(chBuffer) != 0u))
253 {
254 auto str = g_EntryPointer->GetTextW() + wstr_from(chBuffer);
255 g_EntryPointer->SetTextW(str);
256 }
257}
258
259void CEntryText::AddPos(int val, CGump *gump)
260{

Callers 1

OnKeyDownMethod · 0.45

Calls 4

SDL_GetClipboardTextFunction · 0.85
wstr_fromFunction · 0.85
GetTextWMethod · 0.80
SetTextWMethod · 0.45

Tested by

no test coverage detected