MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / GetID

Method GetID

Dependencies/ImGui/src/imgui.cpp:9772–9783  ·  view source on GitHub ↗

This is one of the very rare legacy case where we use ImGuiWindow methods, it should ideally be flattened at some point but it's been used a lots by widgets.

Source from the content-addressed store, hash-verified

9770// This is one of the very rare legacy case where we use ImGuiWindow methods,
9771// it should ideally be flattened at some point but it's been used a lots by widgets.
9772IM_MSVC_RUNTIME_CHECKS_OFF
9773ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end)
9774{
9775 ImGuiID seed = IDStack.back();
9776 ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed);
9777#ifndef IMGUI_DISABLE_DEBUG_TOOLS
9778 ImGuiContext& g = *Ctx;
9779 if (g.DebugHookIdInfoId == id)
9780 ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end);
9781#endif
9782 return id;
9783}
9784
9785ImGuiID ImGuiWindow::GetID(const void* ptr)
9786{

Callers 15

TableHeaderMethod · 0.45
GetColumnsIDMethod · 0.45
BeginChildMethod · 0.45
PushIDMethod · 0.45
IsPopupOpenMethod · 0.45
OpenPopupMethod · 0.45
BeginPopupMethod · 0.45
BeginPopupModalMethod · 0.45
OpenPopupOnItemClickMethod · 0.45

Calls 2

ImHashStrFunction · 0.85
ImHashDataFunction · 0.85

Tested by

no test coverage detected