@ -483,13 +483,13 @@ void ImGui::ShowDemoWindow(bool* p_open)
" Those flags are set by the backends (imgui_impl_xxx files) to specify their capabilities. \n "
" Those flags are set by the backends (imgui_impl_xxx files) to specify their capabilities. \n "
" Here we expose them as read-only fields to avoid breaking interactions with your backend. " ) ;
" Here we expose them as read-only fields to avoid breaking interactions with your backend. " ) ;
// Make a local copy to avoid modifying actual backend flags.
// FIXME: Maybe we need a BeginReadonly() equivalent to keep label bright?
// FIXME: We don't use BeginDisabled() to keep label bright, maybe we need a BeginReadonly() equivalent..
ImGui : : BeginDisabled ( ) ;
ImGuiBackendFlags backend_flags = io . BackendFlags ;
ImGui : : CheckboxFlags ( " io.BackendFlags: HasGamepad " , & io . BackendFlags , ImGuiBackendFlags_HasGamepad ) ;
ImGui : : CheckboxFlags ( " io.BackendFlags: HasGamepad " , & backend_flags , ImGuiBackendFlags_HasGamepad ) ;
ImGui : : CheckboxFlags ( " io.BackendFlags: HasMouseCursors " , & io . BackendFlags , ImGuiBackendFlags_HasMouseCursors ) ;
ImGui : : CheckboxFlags ( " io.BackendFlags: HasMouseCursors " , & backend_flags , ImGuiBackendFlags_HasMouseCursor s ) ;
ImGui : : CheckboxFlags ( " io.BackendFlags: HasSetMousePos " , & io . BackendFlags , ImGuiBackendFlags_HasSetMousePo s ) ;
ImGui : : CheckboxFlags ( " io.BackendFlags: HasSetMousePos " , & backend_flags , ImGuiBackendFlags_HasSetMousePos ) ;
ImGui : : CheckboxFlags ( " io.BackendFlags: RendererHasVtxOffset " , & io . BackendFlags , ImGuiBackendFlags_RendererHasVtxOffset ) ;
ImGui : : CheckboxFlags ( " io.BackendFlags: RendererHasVtxOffset " , & backend_flags , ImGuiBackendFlags_RendererHasVtxOffset ) ;
ImGui : : EndDisabled ( ) ;
ImGui : : TreePop ( ) ;
ImGui : : TreePop ( ) ;
ImGui : : Spacing ( ) ;
ImGui : : Spacing ( ) ;
}
}