Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A C++ file dialog using Dear ImGui

License

NotificationsYou must be signed in to change notification settings

Iam1337/ImGui-FileDialog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

License

File Dialog for Dear ImGui

Simple file dialog for Dear ImGui. Based onL2DFileDialog.

File Dialog

Usage

Addimgui_filedialog.h to your C++ project and include it where you use ImGui.

// Declare outside draw loopbool m_fileDialogOpen;ImFileDialogInfo m_fileDialogInfo;// Optional file filterm_fileDialogInfo.fileFilterFunc = [](std::string filename) {  std::size_t found = filename.find(".json");return found != std::string::npos;};// App logicif (ImGui::Button("Save File")){    m_fileDialogOpen =true;    m_fileDialogInfo.type = ImGuiFileDialogType_SaveFile;    m_fileDialogInfo.title ="Save File";    m_fileDialogInfo.fileName ="test.json";    m_fileDialogInfo.directoryPath =std::filesystem::current_path();}// Any place in draw loopif (ImGui::FileDialog(&m_fileDialogOpen, &m_fileDialogInfo)){// Result path in: m_fileDialogInfo.resultPath}

Features

  • Different file dialog types:
    • Open File
    • Save File
  • Sort by:
    • File
    • Size
    • Type
    • Last modified date

Changes

  • Added SaveFile dialog type.
  • Changed interface.
  • Changed code style.

License

This project is under theApache License.

About

A C++ file dialog using Dear ImGui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++100.0%

[8]ページ先頭

©2009-2025 Movatter.jp