MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / TableBeginContextMenuPopup

Method TableBeginContextMenuPopup

KBotExt/imgui/imgui_tables.cpp:3098–3107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3096}
3097
3098bool ImGui::TableBeginContextMenuPopup(ImGuiTable* table)
3099{
3100 if (!table->IsContextPopupOpen || table->InstanceCurrent != table->InstanceInteracted)
3101 return false;
3102 const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID);
3103 if (BeginPopupEx(context_menu_id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings))
3104 return true;
3105 table->IsContextPopupOpen = false;
3106 return false;
3107}
3108
3109// Output context menu into current window (generally a popup)
3110// FIXME-TABLE: Ideally this should be writable by the user. Full programmatic access to that data?

Callers

nothing calls this directly

Calls 1

ImHashStrFunction · 0.85

Tested by

no test coverage detected