MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / TableGetColumnFlags

Method TableGetColumnFlags

include/imgui/imgui_tables.cpp:1791–1802  ·  view source on GitHub ↗

We allow querying for an extra column in order to poll the IsHovered state of the right-most section

Source from the content-addressed store, hash-verified

1789
1790// We allow querying for an extra column in order to poll the IsHovered state of the right-most section
1791ImGuiTableColumnFlags ImGui::TableGetColumnFlags(int column_n)
1792{
1793 ImGuiContext& g = *GImGui;
1794 ImGuiTable* table = g.CurrentTable;
1795 if (!table)
1796 return ImGuiTableColumnFlags_None;
1797 if (column_n < 0)
1798 column_n = table->CurrentColumn;
1799 if (column_n == table->ColumnsCount)
1800 return (table->HoveredColumnBody == column_n) ? ImGuiTableColumnFlags_IsHovered : ImGuiTableColumnFlags_None;
1801 return table->Columns[column_n].Flags;
1802}
1803
1804// Return the cell rectangle based on currently known height.
1805// - Important: we generally don't know our row height until the end of the row, so Max.y will be incorrect in many situations.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected