MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / m_DrawCancelButton

Method m_DrawCancelButton

ImGuiFileDialog.cpp:4081–4093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4079}
4080
4081bool IGFD::FileDialog::m_DrawCancelButton() {
4082 if (IMGUI_BUTTON(cancelButtonString "##validationdialog", ImVec2(cancelButtonWidth, 0.0f)) || m_FileDialogInternal.needToExitDialog) // dialog exit asked
4083 {
4084 m_FileDialogInternal.isOk = false;
4085 return true;
4086 }
4087
4088#if invertOkAndCancelButtons
4089 ImGui::SameLine();
4090#endif
4091
4092 return false;
4093}
4094
4095bool IGFD::FileDialog::m_DrawValidationButtons() {
4096 bool res = false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected