MCPcopy Create free account
hub / github.com/SFML/imgui-sfml / getClipboardText

Function getClipboardText

imgui-SFML.cpp:208–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208[[nodiscard]] const char* getClipboardText(ImGuiContext* /*ctx*/)
209{
210 static std::string s_clipboardText;
211
212 auto tmp = sf::Clipboard::getString().toUtf8();
213 s_clipboardText.assign(tmp.begin(), tmp.end());
214 return s_clipboardText.c_str();
215}
216
217// mouse cursors
218void updateMouseCursor(sf::Window& window);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected