mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Removed redirecting functions/enums names that were marked obsolete in 1.63 (August 2018) + tables tweaks.
This commit is contained in:
		| @@ -2295,10 +2295,11 @@ void ImGui::TableMergeDrawChannels(ImGuiTable* table) | ||||
| void ImGui::TableDrawBorders(ImGuiTable* table) | ||||
| { | ||||
|     ImGuiWindow* inner_window = table->InnerWindow; | ||||
|     table->DrawSplitter.SetCurrentChannel(inner_window->DrawList, TABLE_DRAW_CHANNEL_BG0); | ||||
|     if (inner_window->Hidden || !table->HostClipRect.Overlaps(table->InnerClipRect)) | ||||
|         return; | ||||
|  | ||||
|     ImDrawList* inner_drawlist = inner_window->DrawList; | ||||
|     table->DrawSplitter.SetCurrentChannel(inner_drawlist, TABLE_DRAW_CHANNEL_BG0); | ||||
|     inner_drawlist->PushClipRect(table->Bg0ClipRectForDrawCmd.Min, table->Bg0ClipRectForDrawCmd.Max, false); | ||||
|  | ||||
|     // Draw inner border and resizing feedback | ||||
| @@ -2318,12 +2319,12 @@ void ImGui::TableDrawBorders(ImGuiTable* table) | ||||
|             const bool is_hovered = (table->HoveredColumnBorder == column_n); | ||||
|             const bool is_resized = (table->ResizedColumn == column_n) && (table->InstanceInteracted == table->InstanceCurrent); | ||||
|             const bool is_resizable = (column->Flags & (ImGuiTableColumnFlags_NoResize | ImGuiTableColumnFlags_NoDirectResize_)) == 0; | ||||
|             const bool is_frozen_separator = (table->FreezeColumnsCount != -1 && table->FreezeColumnsCount == order_n + 1); | ||||
|  | ||||
|             if (column->MaxX > table->InnerClipRect.Max.x && !is_resized)// && is_hovered) | ||||
|                 continue; | ||||
|             if (column->NextEnabledColumn == -1 && !is_resizable) | ||||
|                 if ((table->Flags & ImGuiTableFlags_SameWidths) == 0) | ||||
|                     continue; | ||||
|             if (column->NextEnabledColumn == -1 && !is_resizable && (table->Flags & ImGuiTableFlags_SameWidths) == 0) | ||||
|                 continue; | ||||
|             if (column->MaxX <= column->ClipRect.Min.x) // FIXME-TABLE FIXME-STYLE: Assume BorderSize==1, this is problematic if we want to increase the border size.. | ||||
|                 continue; | ||||
|  | ||||
| @@ -2331,7 +2332,7 @@ void ImGui::TableDrawBorders(ImGuiTable* table) | ||||
|             // Always draw full height border when being resized/hovered, or on the delimitation of frozen column scrolling. | ||||
|             ImU32 col; | ||||
|             float draw_y2; | ||||
|             if (is_hovered || is_resized || (table->FreezeColumnsCount != -1 && table->FreezeColumnsCount == order_n + 1)) | ||||
|             if (is_hovered || is_resized || is_frozen_separator) | ||||
|             { | ||||
|                 draw_y2 = draw_y2_body; | ||||
|                 col = is_resized ? GetColorU32(ImGuiCol_SeparatorActive) : is_hovered ? GetColorU32(ImGuiCol_SeparatorHovered) : table->BorderColorStrong; | ||||
| @@ -2348,7 +2349,7 @@ void ImGui::TableDrawBorders(ImGuiTable* table) | ||||
|     } | ||||
|  | ||||
|     // Draw outer border | ||||
|     // FIXME-TABLE: could use AddRect or explicit VLine/HLine helper? | ||||
|     // FIXME: could use AddRect or explicit VLine/HLine helper? | ||||
|     if (table->Flags & ImGuiTableFlags_BordersOuter) | ||||
|     { | ||||
|         // Display outer border offset by 1 which is a simple way to display it without adding an extra draw call | ||||
|   | ||||
		Reference in New Issue
	
	Block a user