MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / TableGetColumnBorderCol

Function TableGetColumnBorderCol

imgui_tiny_app/imgui/imgui_tables.cpp:2778–2788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2776}
2777
2778static ImU32 TableGetColumnBorderCol(ImGuiTable* table, int order_n, int column_n)
2779{
2780 const bool is_hovered = (table->HoveredColumnBorder == column_n);
2781 const bool is_resized = (table->ResizedColumn == column_n) && (table->InstanceInteracted == table->InstanceCurrent);
2782 const bool is_frozen_separator = (table->FreezeColumnsCount == order_n + 1);
2783 if (is_resized || is_hovered)
2784 return ImGui::GetColorU32(is_resized ? ImGuiCol_SeparatorActive : ImGuiCol_SeparatorHovered);
2785 if (is_frozen_separator || (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize)))
2786 return table->BorderColorStrong;
2787 return table->BorderColorLight;
2788}
2789
2790// FIXME-TABLE: This is a mess, need to redesign how we render borders (as some are also done in TableEndRow)
2791void ImGui::TableDrawBorders(ImGuiTable* table)

Callers 2

TableDrawBordersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected