mirror of
https://github.com/ocornut/imgui.git
synced 2025-10-21 17:31:45 +00:00
Added GetContentRegionAvailWidth() helper. Demo tweaks.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user