MCPcopy Create free account
hub / github.com/RenderKit/embree / TableBeginContextMenuPopup

Method TableBeginContextMenuPopup

tutorials/common/imgui/imgui_tables.cpp:3044–3053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3042}
3043
3044bool ImGui::TableBeginContextMenuPopup(ImGuiTable* table)
3045{
3046 if (!table->IsContextPopupOpen || table->InstanceCurrent != table->InstanceInteracted)
3047 return false;
3048 const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID);
3049 if (BeginPopupEx(context_menu_id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings))
3050 return true;
3051 table->IsContextPopupOpen = false;
3052 return false;
3053}
3054
3055// Output context menu into current window (generally a popup)
3056// 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