mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-21 04:53:38 +08:00
Viewports: add GetDebugName() helper.
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
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