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

Method EndFrame

ImGuiFileDialog.cpp:2800–2829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2798}
2799
2800void IGFD::FileDialogInternal::EndFrame() {
2801 // directory change
2802 if (fileManager.pathClicked) {
2803 fileManager.OpenCurrentPath(*this);
2804 }
2805
2806 if (fileManager.devicesClicked) {
2807 if (fileManager.GetDevices()) {
2808 fileManager.ApplyFilteringOnFileList(*this);
2809 }
2810 }
2811
2812 if (fileManager.inputPathActivated) {
2813 auto gio = ImGui::GetIO();
2814 if (ImGui::IsKeyReleased(ImGuiKey_Enter)) {
2815 fileManager.SetCurrentPath(std::string(fileManager.inputPathBuffer));
2816 fileManager.OpenCurrentPath(*this);
2817 fileManager.inputPathActivated = false;
2818 }
2819 if (ImGui::IsKeyReleased(ImGuiKey_Escape)) {
2820 fileManager.inputPathActivated = false;
2821 }
2822 }
2823
2824 if (ImGui::IsKeyDown(ImGuiMod_Ctrl)) {
2825 if (ImGui::IsKeyDown(SelectAllFilesKey)) {
2826 fileManager.SelectAllFileNames();
2827 }
2828 }
2829}
2830
2831void IGFD::FileDialogInternal::ResetForNewDialog() {
2832}

Callers 1

m_EndFrameMethod · 0.80

Calls 5

OpenCurrentPathMethod · 0.80
GetDevicesMethod · 0.80
SetCurrentPathMethod · 0.80
SelectAllFileNamesMethod · 0.80

Tested by

no test coverage detected