| 4192 | } |
| 4193 | |
| 4194 | float ImGui::GetColumnOffset(int column_index) |
| 4195 | { |
| 4196 | ImGuiWindow* window = GetCurrentWindowRead(); |
| 4197 | ImGuiOldColumns* columns = window->DC.CurrentColumns; |
| 4198 | if (columns == NULL) |
| 4199 | return 0.0f; |
| 4200 | |
| 4201 | if (column_index < 0) |
| 4202 | column_index = columns->Current; |
| 4203 | IM_ASSERT(column_index < columns->Columns.Size); |
| 4204 | |
| 4205 | const float t = columns->Columns[column_index].OffsetNorm; |
| 4206 | const float x_offset = ImLerp(columns->OffMinX, columns->OffMaxX, t); |
| 4207 | return x_offset; |
| 4208 | } |
| 4209 | |
| 4210 | static float GetColumnWidthEx(ImGuiOldColumns* columns, int column_index, bool before_resize = false) |
| 4211 | { |
nothing calls this directly
no test coverage detected