push Disabled
Calls pushStyleVar
to temporarily modify the ImGUI style, and pushItemFlag
to disable interactions with controls. Make sure to nest other calls to push/pop StyleVar and push/pop ItemFlag correctly.
ImGUI doesn't have an (official) enabled/disabled system for most controls (yet), so this uses internal/BETA functionality for now. See: https://github.com/ocornut/imgui/issues/211