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

Method m_DrawValidationButtons

ImGuiFileDialog.cpp:4095–4115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4093}
4094
4095bool IGFD::FileDialog::m_DrawValidationButtons() {
4096 bool res = false;
4097
4098 ImGui::SetCursorPosX(ImGui::GetCursorPosX() + (ImGui::GetContentRegionAvail().x - prOkCancelButtonWidth) * okCancelButtonAlignement);
4099
4100 ImGui::BeginGroup();
4101
4102 if (invertOkAndCancelButtons) {
4103 res |= m_DrawCancelButton();
4104 res |= m_DrawOkButton();
4105 } else {
4106 res |= m_DrawOkButton();
4107 res |= m_DrawCancelButton();
4108 }
4109
4110 ImGui::EndGroup();
4111
4112 prOkCancelButtonWidth = ImGui::GetItemRectSize().x;
4113
4114 return res;
4115}
4116
4117bool IGFD::FileDialog::m_DrawFooter() {
4118 auto& fdFile = m_FileDialogInternal.fileManager;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected