MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / GetID

Method GetID

external/imgui/imgui.cpp:9214–9225  ·  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

9212// This is one of the very rare legacy case where we use ImGuiWindow methods,
9213// it should ideally be flattened at some point but it's been used a lots by widgets.
9214IM_MSVC_RUNTIME_CHECKS_OFF
9215ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end)
9216{
9217 ImGuiID seed = IDStack.back();
9218 ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed);
9219#ifndef IMGUI_DISABLE_DEBUG_TOOLS
9220 ImGuiContext& g = *Ctx;
9221 if (g.DebugHookIdInfoId == id)
9222 ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end);
9223#endif
9224 return id;
9225}
9226
9227ImGuiID ImGuiWindow::GetID(const void* ptr)
9228{

Callers 15

TableHeaderMethod · 0.80
GetColumnsIDMethod · 0.80
BeginChildMethod · 0.80
PushIDMethod · 0.80
IsPopupOpenMethod · 0.80
OpenPopupMethod · 0.80
BeginPopupMethod · 0.80
BeginPopupModalMethod · 0.80
OpenPopupOnItemClickMethod · 0.80
BeginPopupContextItemMethod · 0.80

Calls 3

ImHashStrFunction · 0.85
ImHashDataFunction · 0.85
backMethod · 0.80

Tested by

no test coverage detected