| 3717 | } |
| 3718 | |
| 3719 | float ImGui::GetColumnOffset(int column_index) |
| 3720 | { |
| 3721 | ImGuiWindow* window = GetCurrentWindowRead(); |
| 3722 | ImGuiOldColumns* columns = window->DC.CurrentColumns; |
| 3723 | if (columns == NULL) |
| 3724 | return 0.0f; |
| 3725 | |
| 3726 | if (column_index < 0) |
| 3727 | column_index = columns->Current; |
| 3728 | IM_ASSERT(column_index < columns->Columns.Size); |
| 3729 | |
| 3730 | const float t = columns->Columns[column_index].OffsetNorm; |
| 3731 | const float x_offset = ImLerp(columns->OffMinX, columns->OffMaxX, t); |
| 3732 | return x_offset; |
| 3733 | } |
| 3734 | |
| 3735 | static float GetColumnWidthEx(ImGuiOldColumns* columns, int column_index, bool before_resize = false) |
| 3736 | { |
nothing calls this directly
no test coverage detected