module

Egui::SystemPorts::OpenFileDialog

Class methods

show(title : String = "Open file", filters : Array(String) = [] of String, directory : String | Nil = nil, &on_done : String | Nil -> ) : Nil

Start a non-blocking open-file dialog. Returns immediately; on_done receives the chosen path, or nil on cancel / when no dialog tool is available, on a later frame.

  • title — dialog window title.
  • filters — glob patterns, e.g. ["*.png", "*.jpg"]; empty means all files.
  • directory — where the dialog starts.
Source