From 9a528400f083b3761e0d54565ea1002604f5472a Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 4 Sep 2001 13:13:29 +0000 Subject: Doco updates. Add directory-only support to Fl_FileBrowser. Update button and menu drawing code for check and radio buttons. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_FileBrowser.html | 55 ++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 29 deletions(-) (limited to 'documentation/Fl_FileBrowser.html') diff --git a/documentation/Fl_FileBrowser.html b/documentation/Fl_FileBrowser.html index 4a0203298..2c9e1da00 100644 --- a/documentation/Fl_FileBrowser.html +++ b/documentation/Fl_FileBrowser.html @@ -1,76 +1,73 @@ - - FileBrowser - ESP Widget Set for FLTK - - - Widget Set Home Page - Widget Set Documentation - Download Widget Set - ESP Home Page - FLTK Home Page - - - - + -

class FileBrowser

+

class Fl_FileBrowser


Class Hierarchy

Include Files

Description

-

The FileBrowser widget displays a list of filenames, +

The Fl_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)

+

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

-

The constructor creates the FileBrowser widget at the specified +

The constructor creates the Fl_FileBrowser widget at the specified position and size. -

~FileBrowser()

+

~Fl_FileBrowser()

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

void iconsize(uchar s)
+

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)
+

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)

+

void filetype(int type)
+int filetype() const

+ +

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. + +

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. -- cgit v1.2.3