Crate dear_file_browser

Crate dear_file_browser 

Source
Expand description

File dialogs and in-UI file browser for dear-imgui-rs.

Note on UTF-8/CJK: Dear ImGui’s default font does not include CJK glyphs. If you need Chinese/Japanese/Korean or emoji, load a font that contains those glyphs (e.g., Noto Sans SC) into the font atlas during initialization. For best quality, enable the freetype feature and follow the pattern in examples/style_and_fonts.rs to add fonts and ranges (e.g., Simplified Chinese common glyphs).

Two backends:

  • Native (via rfd) for OS dialogs (desktop) and Web File Picker (wasm)
  • ImGui (pure-UI) browser that works everywhere and is fully themeable

Structs§

FileBrowserState
State for in-UI file browser
FileDialog
Builder for launching file dialogs
FileFilter
File filter (e.g., “Images” -> [“png”, “jpg”]).
Selection
Selection result containing one or more paths

Enums§

Backend
Backend preference
ClickAction
Click behavior for directory rows
DialogMode
Dialog mode
FileDialogError
Errors returned by file dialogs and in-UI browser
LayoutStyle
Layout style for the in-UI file browser
SortBy
Sort keys for file list

Traits§

FileDialogExt
Extend Ui with a file browser entry point