Added [X] and [Close] buttons to close 3Dconnexion setting imgui dialog by clicking on them

This commit is contained in:
Enrico Turri 2019-12-16 13:35:45 +01:00
parent 7b1e96fe7f
commit 43213b9548
6 changed files with 178 additions and 81 deletions

View file

@ -254,6 +254,16 @@ bool ImGuiWrapper::begin(const wxString &name, int flags)
return begin(into_u8(name), flags);
}
bool ImGuiWrapper::begin(const std::string& name, bool* close, int flags)
{
return ImGui::Begin(name.c_str(), close, (ImGuiWindowFlags)flags);
}
bool ImGuiWrapper::begin(const wxString& name, bool* close, int flags)
{
return begin(into_u8(name), close, flags);
}
void ImGuiWrapper::end()
{
ImGui::End();