Widget Set Home Page Widget Set Documentation Download Widget Set ESP Home Page FLTK Home Page

class FileBrowser


Class Hierarchy

Include Files

Description

The FileBrowser widget displays a list of filenames, optionally with file-specific icons.

Methods

FileBrowser(int xx, int yy, int ww, int hh, const char *l = 0)

The constructor creates the FileBrowser widget at the specified position and size.

~FileBrowser()

The destructor destroys the widget and frees all memory that has been allocated.

void iconsize(uchar s)
uchar iconsize() const

Sets or gets the size of the icons. The default size is 20 pixels.

void filter(const char *pattern)
const char *filter() const

Sets or gets the filename filter. The pattern matching uses the filename_match() function in FLTK.

int load(const char *directory)

Loads the specified directory into the browser. If icons have been loaded then the correct icon is associated with each file in the list.