[Public] Append into a specific column
| 2145 | |
| 2146 | // [Public] Append into a specific column |
| 2147 | bool ImGui::TableSetColumnIndex(int column_n) |
| 2148 | { |
| 2149 | ImGuiContext& g = *GImGui; |
| 2150 | ImGuiTable* table = g.CurrentTable; |
| 2151 | if (!table) |
| 2152 | return false; |
| 2153 | |
| 2154 | if (table->CurrentColumn != column_n) |
| 2155 | { |
| 2156 | if (table->CurrentColumn != -1) |
| 2157 | TableEndCell(table); |
| 2158 | IM_ASSERT_USER_ERROR_RETV(column_n >= 0 && column_n < table->ColumnsCount, false, "TableSetColumnIndex() invalid column index!"); |
| 2159 | TableBeginCell(table, column_n); |
| 2160 | } |
| 2161 | |
| 2162 | // Return whether the column is visible. User may choose to skip submitting items based on this return value, |
| 2163 | // however they shouldn't skip submitting for columns that may have the tallest contribution to row height. |
| 2164 | return table->Columns[column_n].IsRequestOutput; |
| 2165 | } |
| 2166 | |
| 2167 | // [Public] Append into the next column, wrap and create a new row when already on last column |
| 2168 | bool ImGui::TableNextColumn() |
nothing calls this directly
no outgoing calls
no test coverage detected