mirror of
https://github.com/ocornut/imgui.git
synced 2026-04-18 05:20:44 +00:00
Viewports: add GetDebugName() helper.
This commit is contained in:
@@ -16539,6 +16539,12 @@ void ImGui::LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count)
|
||||
// - DestroyPlatformWindows()
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
const char* ImGuiViewport::GetDebugName() const
|
||||
{
|
||||
const ImGuiViewportP* viewport = (const ImGuiViewportP*)this;
|
||||
return viewport->Window ? viewport->Window->Name : "n/a";
|
||||
}
|
||||
|
||||
void ImGuiPlatformIO::ClearPlatformHandlers()
|
||||
{
|
||||
Platform_GetClipboardTextFn = NULL;
|
||||
|
||||
Reference in New Issue
Block a user