mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Tables: TableSetupColumn() user id uses ImGuiID as intended (typedef ImU32). internals: added GetCurrentTable(), LeftMostEnabledColumn. Demo/docs tweaks.
This commit is contained in:
		@@ -2091,9 +2091,10 @@ struct ImGuiTable
 | 
			
		||||
    ImGuiTableColumnIdx         HeldHeaderColumn;           // Index of column header being held.
 | 
			
		||||
    ImGuiTableColumnIdx         ReorderColumn;              // Index of column being reordered. (not cleared)
 | 
			
		||||
    ImGuiTableColumnIdx         ReorderColumnDir;           // -1 or +1
 | 
			
		||||
    ImGuiTableColumnIdx         LeftMostEnabledColumn;      // Index of left-most non-hidden column.
 | 
			
		||||
    ImGuiTableColumnIdx         RightMostEnabledColumn;     // Index of right-most non-hidden column.
 | 
			
		||||
    ImGuiTableColumnIdx         LeftMostStretchedColumn;    // Index of left-most stretched column.
 | 
			
		||||
    ImGuiTableColumnIdx         RightMostStretchedColumn;   // Index of right-most stretched column.
 | 
			
		||||
    ImGuiTableColumnIdx         RightMostEnabledColumn;     // Index of right-most non-hidden column.
 | 
			
		||||
    ImGuiTableColumnIdx         ContextPopupColumn;         // Column right-clicked on, of -1 if opening context menu from a neutral/empty spot
 | 
			
		||||
    ImGuiTableColumnIdx         FreezeRowsRequest;          // Requested frozen rows count
 | 
			
		||||
    ImGuiTableColumnIdx         FreezeRowsCount;            // Actual frozen row count (== FreezeRowsRequest, or == 0 when no scrolling offset)
 | 
			
		||||
@@ -2349,6 +2350,7 @@ namespace ImGui
 | 
			
		||||
    IMGUI_API void          TablePopBackgroundChannel();
 | 
			
		||||
 | 
			
		||||
    // Tables: Internals
 | 
			
		||||
    inline    ImGuiTable*   GetCurrentTable() { ImGuiContext& g = *GImGui; return g.CurrentTable; }
 | 
			
		||||
    IMGUI_API ImGuiTable*   TableFindByID(ImGuiID id);
 | 
			
		||||
    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);
 | 
			
		||||
    IMGUI_API void          TableBeginInitMemory(ImGuiTable* table, int columns_count);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user