Skip to content

Commit 6aa8388

Browse files
committed
Tables: index tweaks, fixed some inconsistent spacings.
1 parent 5877b9d commit 6aa8388

File tree

3 files changed

+108
-103
lines changed

3 files changed

+108
-103
lines changed

imgui.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,7 @@ struct ImGuiPayload
18921892
bool IsDelivery() const { return Delivery; }
18931893
};
18941894

1895-
// Sorting specification for one column of a table (sizeof == 8 bytes)
1895+
// Sorting specification for one column of a table (sizeof == 12 bytes)
18961896
struct ImGuiTableSortSpecsColumn
18971897
{
18981898
ImGuiID ColumnUserID; // User id of the column (if specified by a TableSetupColumn() call)

imgui_internal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ struct ImGuiTabBar
18911891

18921892
#define IM_COL32_DISABLE IM_COL32(0,0,0,1) // Special sentinel code which cannot be used as a regular color.
18931893
#define IMGUI_TABLE_MAX_COLUMNS 64 // sizeof(ImU64) * 8. This is solely because we frequently encode columns set in a ImU64.
1894-
#define IMGUI_TABLE_MAX_DRAW_CHANNELS (4 + 64 * 2) // See TableUpdateDrawChannels()
1894+
#define IMGUI_TABLE_MAX_DRAW_CHANNELS (4 + 64 * 2) // See TableSetupDrawChannels()
18951895

18961896
// [Internal] sizeof() ~ 104
18971897
// We use the terminology "Visible" to refer to a columns that are not Hidden by user or settings. However it may still be out of view and clipped (and IsClipped would be set).
@@ -2282,6 +2282,7 @@ namespace ImGui
22822282
// Tables: Internals
22832283
IMGUI_API ImGuiTable* TableFindByID(ImGuiID id);
22842284
IMGUI_API bool BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0, 0), float inner_width = 0.0f);
2285+
IMGUI_API void TableBeginInitMemory(ImGuiTable* table, int columns_count);
22852286
IMGUI_API void TableBeginApplyRequests(ImGuiTable* table);
22862287
IMGUI_API void TableSetupDrawChannels(ImGuiTable* table);
22872288
IMGUI_API void TableUpdateLayout(ImGuiTable* table);

0 commit comments

Comments
 (0)