We allow querying for an extra column in order to poll the IsHovered state of the right-most section
| 1789 | |
| 1790 | // We allow querying for an extra column in order to poll the IsHovered state of the right-most section |
| 1791 | ImGuiTableColumnFlags 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. |
nothing calls this directly
no outgoing calls
no test coverage detected