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

Limeoats/L2DFileDialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A C++ file dialog using Dear ImGui.

Buy Me a Coffee at ko-fi.com

L2DFileDialog

Usage

AddL2DFileDialog.h to your C++ project and include it where you use ImGui. Then, setFileDialog::fileDialogOpen totrue to set the open state. Finally, in yourupdate method, check ifFileDialog::fileDialogOpen == true and if so, callFileDialog::ShowFileDialog, passing in achar array as a buffer to store the chosen file/folder path.

Features

  • New folder
  • Delete folder
  • Sort by:
    • File
    • Size
    • Type
    • Last modified date

Example

You can seeL2dFileDialog/src/main.cpp for a full example. Here is a very minimal sample:

...staticchar* file_dialog_buffer =nullptr;staticchar path[500] ="";ImGui::TextUnformatted("Path:");ImGui::InputText("##path", path,sizeof(path));ImGui::SameLine();if (ImGui::Button("Browse##path")) {  file_dialog_buffer = path;  FileDialog::file_dialog_open =true;  FileDialog::file_dialog_open_type = FileDialog::FileDialogType::SelectFolder;}if (FileDialog::file_dialog_open) {FileDialog::ShowFileDialog(&FileDialog::file_dialog_open, file_dialog_buffer,sizeof(file_dialog_buffer), FileDialog::file_dialog_open_type);}...

L2DFileDialogGif

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

[8]ページ先頭

©2009-2025 Movatter.jp