| 3103 | //------------------------------------------------------------------------- |
| 3104 | |
| 3105 | float ImGui::TableGetHeaderRowHeight() |
| 3106 | { |
| 3107 | // Caring for a minor edge case: |
| 3108 | // Calculate row height, for the unlikely case that some labels may be taller than others. |
| 3109 | // If we didn't do that, uneven header height would highlight but smaller one before the tallest wouldn't catch input for all height. |
| 3110 | // In your custom header row you may omit this all together and just call TableNextRow() without a height... |
| 3111 | ImGuiContext& g = *GImGui; |
| 3112 | ImGuiTable* table = g.CurrentTable; |
| 3113 | float row_height = g.FontSize; |
| 3114 | for (int column_n = 0; column_n < table->ColumnsCount; column_n++) |
| 3115 | if (IM_BITARRAY_TESTBIT(table->EnabledMaskByIndex, column_n)) |
| 3116 | if ((table->Columns[column_n].Flags & ImGuiTableColumnFlags_NoHeaderLabel) == 0) |
| 3117 | row_height = ImMax(row_height, CalcTextSize(TableGetColumnName(table, column_n)).y); |
| 3118 | return row_height + g.Style.CellPadding.y * 2.0f; |
| 3119 | } |
| 3120 | |
| 3121 | float ImGui::TableGetHeaderAngledMaxLabelWidth() |
| 3122 | { |