MCPcopy Create free account
hub / github.com/RenderKit/embree / GetColumnOffset

Method GetColumnOffset

tutorials/common/imgui/imgui_tables.cpp:3719–3733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3717}
3718
3719float 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
3735static float GetColumnWidthEx(ImGuiOldColumns* columns, int column_index, bool before_resize = false)
3736{

Callers

nothing calls this directly

Calls 2

GetCurrentWindowReadFunction · 0.85
ImLerpFunction · 0.85

Tested by

no test coverage detected