MCPcopy Create free account
hub / github.com/cinder/Cinder / GetColumnOffset

Method GetColumnOffset

src/imgui/imgui_tables.cpp:4194–4208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4192}
4193
4194float 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
4210static float GetColumnWidthEx(ImGuiOldColumns* columns, int column_index, bool before_resize = false)
4211{

Callers

nothing calls this directly

Calls 2

GetCurrentWindowReadFunction · 0.85
ImLerpFunction · 0.85

Tested by

no test coverage detected