mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-15 00:44:20 +00:00
Added SetClipboardText / GetClipboardText helper shortcuts to match MemAlloc / MemFree
This commit is contained in:
parent
59cedca02e
commit
a5c895f791
2 changed files with 14 additions and 1 deletions
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue