mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 12:08:47 +02:00
Added SetClipboardText / GetClipboardText helper shortcuts to match MemAlloc / MemFree
This commit is contained in:
11
imgui.cpp
11
imgui.cpp
@ -1761,6 +1761,17 @@ void ImGui::MemFree(void* ptr)
|
||||
return GImGui->IO.MemFreeFn(ptr);
|
||||
}
|
||||
|
||||
const char* ImGui::GetClipboardText()
|
||||
{
|
||||
return GImGui->IO.GetClipboardTextFn ? GImGui->IO.GetClipboardTextFn() : "";
|
||||
}
|
||||
|
||||
void ImGui::SetClipboardText(const char* text)
|
||||
{
|
||||
if (GImGui->IO.SetClipboardTextFn)
|
||||
GImGui->IO.SetClipboardTextFn(text);
|
||||
}
|
||||
|
||||
const char* ImGui::GetVersion()
|
||||
{
|
||||
return IMGUI_VERSION;
|
||||
|
Reference in New Issue
Block a user