Imgui: ImGui::Spacing() with custom height parameter

Created on 9 Dec 2017  路  1Comment  路  Source: ocornut/imgui

When i use ImGui::Spacing() function, but i want a more vertical spacing, i think should modify the ImGui::Spacing() function, just like:

IMGUI_API void Spacing(float h = 0.0f);

`

void ImGui::Spacing(float h)
{
ImGuiWindow* window = GetCurrentWindow();

if (window->SkipItems)
return;
ItemSize(ImVec2(0, h));
}

`

so...., when, we can use look like this, add more spacing before....

ImGui::Spacing(20.0f); if (ImGui::CollapsingHeader("System Info")) showSystemInfo();

layout

Most helpful comment

Hello @hemmingway,
I forgot to reply to this, but you can simply use:

ImGui::Dummy(ImVec2(0.0f, 20.0f));

>All comments

Hello @hemmingway,
I forgot to reply to this, but you can simply use:

ImGui::Dummy(ImVec2(0.0f, 20.0f));

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GrammarLord picture GrammarLord  路  3Comments

ghost picture ghost  路  3Comments

dowit picture dowit  路  3Comments

SlNPacifist picture SlNPacifist  路  3Comments

mkanakis picture mkanakis  路  3Comments