Added GetContentRegionAvailWidth() helper. Demo tweaks.

This commit is contained in:
ocornut
2015-08-30 15:35:59 +01:00
parent fc13ae2aa5
commit d88b73a8b7
3 changed files with 16 additions and 5 deletions

View File

@ -4550,6 +4550,11 @@ ImVec2 ImGui::GetContentRegionAvail()
return GetContentRegionMax() - (window->DC.CursorPos - window->Pos);
}
float ImGui::GetContentRegionAvailWidth()
{
return GetContentRegionAvail().x;
}
// In window space (not screen space!)
ImVec2 ImGui::GetWindowContentRegionMin()
{