MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / TableRemove

Method TableRemove

TheForceEngine/TFE_Ui/imGUI/imgui_tables.cpp:3832–3841  ·  view source on GitHub ↗

Remove Table (currently only used by TestEngine)

Source from the content-addressed store, hash-verified

3830
3831// Remove Table (currently only used by TestEngine)
3832void ImGui::TableRemove(ImGuiTable* table)
3833{
3834 //IMGUI_DEBUG_PRINT("TableRemove() id=0x%08X\n", table->ID);
3835 ImGuiContext& g = *GImGui;
3836 int table_idx = g.Tables.GetIndex(table);
3837 //memset(table->RawData.Data, 0, table->RawData.size_in_bytes());
3838 //memset(table, 0, sizeof(ImGuiTable));
3839 g.Tables.Remove(table->ID, table);
3840 g.TablesLastTimeActive[table_idx] = -1.0f;
3841}
3842
3843// Free up/compact internal Table buffers for when it gets unused
3844void ImGui::TableGcCompactTransientBuffers(ImGuiTable* table)

Callers

nothing calls this directly

Calls 2

GetIndexMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected