Fl_Browser | +----Fl_File_Browser
#include <FL/Fl_File_Browser.H>
The Fl_File_Browser
widget displays a list of filenames,
optionally with file-specific icons.
The constructor creates the Fl_File_Browser
widget at the specified
position and size.
The destructor destroys the widget and frees all memory that has been allocated.
Sets or gets the size of the icons. The default size is 20 pixels.
Sets or gets the filename filter. The pattern matching uses
the fl_filename_match()
function in FLTK.
Sets or gets the file browser type, FILES
or
DIRECTORIES
. When set to FILES
, both
files and directories are shown. Otherwise only directories are
shown.
Loads the specified directory into the browser. If icons have been loaded then the correct icon is associated with each file in the list.
The sort argument specifies a sort function to be used with fl_filename_list().