| 2627 | } |
| 2628 | |
| 2629 | static ImU32 TableGetColumnBorderCol(ImGuiTable* table, int order_n, int column_n) |
| 2630 | { |
| 2631 | const bool is_hovered = (table->HoveredColumnBorder == column_n); |
| 2632 | const bool is_resized = (table->ResizedColumn == column_n) && (table->InstanceInteracted == table->InstanceCurrent); |
| 2633 | const bool is_frozen_separator = (table->FreezeColumnsCount == order_n + 1); |
| 2634 | if (is_resized || is_hovered) |
| 2635 | return ImGui::GetColorU32(is_resized ? ImGuiCol_SeparatorActive : ImGuiCol_SeparatorHovered); |
| 2636 | if (is_frozen_separator || (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize))) |
| 2637 | return table->BorderColorStrong; |
| 2638 | return table->BorderColorLight; |
| 2639 | } |
| 2640 | |
| 2641 | // FIXME-TABLE: This is a mess, need to redesign how we render borders (as some are also done in TableEndRow) |
| 2642 | void ImGui::TableDrawBorders(ImGuiTable* table) |
no outgoing calls
no test coverage detected