mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-23 23:29:34 +08:00
Tables: Internals: Added FindTableByID(), removing trailing spaces.
# Conflicts: # imgui_internal.h
This commit is contained in:
+7
-1
@@ -127,6 +127,12 @@ inline ImGuiTableFlags TableFixFlags(ImGuiTableFlags flags)
|
||||
return flags;
|
||||
}
|
||||
|
||||
ImGuiTable* ImGui::FindTableByID(ImGuiID id)
|
||||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
return g.Tables.GetByKey(id);
|
||||
}
|
||||
|
||||
// About 'outer_size':
|
||||
// The meaning of outer_size needs to differ slightly depending of if we are using ScrollX/ScrollY flags.
|
||||
// With ScrollX/ScrollY: using a child window for scrolling:
|
||||
@@ -2137,7 +2143,7 @@ void ImGui::TableSortSpecsClickColumn(ImGuiTable* table, ImGuiTableColumn* click
|
||||
table->IsSortSpecsDirty = true;
|
||||
}
|
||||
|
||||
// Return NULL if no sort specs (most often when ImGuiTableFlags_Sortable is not set)
|
||||
// Return NULL if no sort specs (most often when ImGuiTableFlags_Sortable is not set)
|
||||
// You can sort your data again when 'SpecsChanged == true'. It will be true with sorting specs have changed since last call, or the first time.
|
||||
// Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable()!
|
||||
const ImGuiTableSortSpecs* ImGui::TableGetSortSpecs()
|
||||
|
||||
Reference in New Issue
Block a user