| 4093 | } |
| 4094 | |
| 4095 | bool 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 | |
| 4117 | bool IGFD::FileDialog::m_DrawFooter() { |
| 4118 | auto& fdFile = m_FileDialogInternal.fileManager; |
nothing calls this directly
no outgoing calls
no test coverage detected