MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / SetContextName

Method SetContextName

Source/3rdParty/imgui/imgui.cpp:4532–4535  ·  view source on GitHub ↗

When using multiple context it can be helpful to give name a name. (A) Will be visible in debugger, (B) Will be included in all IMGUI_DEBUG_LOG() calls, (C) Should be <= 15 characters long.

Source from the content-addressed store, hash-verified

4530// When using multiple context it can be helpful to give name a name.
4531// (A) Will be visible in debugger, (B) Will be included in all IMGUI_DEBUG_LOG() calls, (C) Should be <= 15 characters long.
4532void ImGui::SetContextName(ImGuiContext* ctx, const char* name)
4533{
4534 ImStrncpy(ctx->ContextName, name, IM_COUNTOF(ctx->ContextName));
4535}
4536
4537// No specific ordering/dependency support, will see as needed
4538ImGuiID ImGui::AddContextHook(ImGuiContext* ctx, const ImGuiContextHook* hook)

Callers

nothing calls this directly

Calls 1

ImStrncpyFunction · 0.85

Tested by

no test coverage detected