mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-06 13:08:47 +02: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