mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-15 00:44:20 +00:00
Added comments on columns function; Added GetColumnIndex(), GetColumnsCount(), #154
This commit is contained in:
parent
6db6c0c8c0
commit
e01500f046
2 changed files with 17 additions and 3 deletions
12
imgui.cpp
12
imgui.cpp
|
|
@ -6465,6 +6465,18 @@ void ImGui::NextColumn()
|
|||
}
|
||||
}
|
||||
|
||||
int ImGui::GetColumnIndex()
|
||||
{
|
||||
ImGuiWindow* window = GetCurrentWindow();
|
||||
return window->DC.ColumnsCurrent;
|
||||
}
|
||||
|
||||
int ImGui::GetColumnsCount()
|
||||
{
|
||||
ImGuiWindow* window = GetCurrentWindow();
|
||||
return window->DC.ColumnsCount;
|
||||
}
|
||||
|
||||
float ImGui::GetColumnOffset(int column_index)
|
||||
{
|
||||
ImGuiState& g = *GImGui;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue