MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / glfwSetClipboardString

Function glfwSetClipboardString

src/custom/glfw.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40GLFWAPI void glfwSetClipboardString(GLFWwindow*, const char* const text)
41{
42 DISTRHO_SAFE_ASSERT_RETURN(text != nullptr,);
43
44 CardinalPluginContext* const context = static_cast<CardinalPluginContext*>(APP);
45 DISTRHO_SAFE_ASSERT_RETURN(context != nullptr,);
46 DISTRHO_SAFE_ASSERT_RETURN(context->tlw != nullptr,);
47
48 context->tlw->setClipboard(nullptr, text, std::strlen(text)+1);
49}
50
51GLFWAPI GLFWcursor* glfwCreateStandardCursor(const int shape)
52{

Callers 3

copyClipboardMethod · 0.50
appendContextMenuMethod · 0.50
SetClipboardTextFnFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected