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
77 lines
2.1 KiB
HTML
77 lines
2.1 KiB
HTML
<HTML>
|
|
<BODY>
|
|
|
|
<!-- NEW PAGE -->
|
|
<H2><A NAME="Fl_FileBrowser">class Fl_FileBrowser</A></H2>
|
|
|
|
<HR>
|
|
|
|
<H3>Class Hierarchy</H3>
|
|
|
|
<UL><PRE>
|
|
<A HREF="Fl_Browser.html#Fl_Browser">Fl_Browser</A>
|
|
|
|
|
+----<B>Fl_FileBrowser</B>
|
|
</PRE></UL>
|
|
|
|
<H3>Include Files</H3>
|
|
|
|
<UL><PRE>
|
|
#include <FL/Fl_FileBrowser.H>
|
|
</PRE></UL>
|
|
|
|
<H3>Description</H3>
|
|
|
|
<P>The <CODE>Fl_FileBrowser</CODE> widget displays a list of filenames,
|
|
optionally with file-specific icons.
|
|
|
|
<H3>Methods</H3>
|
|
|
|
<UL>
|
|
|
|
<LI><A HREF="#Fl_FileBrowser.Fl_FileBrowser">Fl_FileBrowser</A>
|
|
<LI><A HREF="#Fl_FileBrowser.~Fl_FileBrowser">~Fl_FileBrowser</A>
|
|
<LI><A HREF="#Fl_FileBrowser.iconsize">iconsize</A>
|
|
<LI><A HREF="#Fl_FileBrowser.filter">filter</A>
|
|
<LI><A HREF="#Fl_FileBrowser.filetype">filetype</A>
|
|
<LI><A HREF="#Fl_FileBrowser.load">load</A>
|
|
|
|
</UL>
|
|
|
|
<H4><A NAME="Fl_FileBrowser.Fl_FileBrowser">Fl_FileBrowser(int xx, int yy, int ww, int hh, const char *l = 0)</A></H4>
|
|
|
|
<P>The constructor creates the <CODE>Fl_FileBrowser</CODE> widget at the specified
|
|
position and size.
|
|
|
|
<H4><A NAME="Fl_FileBrowser.~Fl_FileBrowser">~Fl_FileBrowser()</A></H4>
|
|
|
|
<P>The destructor destroys the widget and frees all memory that has been
|
|
allocated.
|
|
|
|
<H4><A NAME="Fl_FileBrowser.iconsize">void iconsize(uchar s)<BR>
|
|
uchar iconsize() const</A></H4>
|
|
|
|
<P>Sets or gets the size of the icons. The default size is 20 pixels.
|
|
|
|
<H4><A NAME="Fl_FileBrowser.filter">void filter(const char *pattern)<BR>
|
|
const char *filter() const</A></H4>
|
|
|
|
<P>Sets or gets the filename filter. The pattern matching uses the
|
|
<CODE>filename_match()</CODE> function in FLTK.
|
|
|
|
<H4><A NAME="Fl_FileBrowser.filetype">void filetype(int type)<BR>
|
|
int filetype() const</A></H4>
|
|
|
|
<P>Sets or gets the file browser type, <CODE>FILES</CODE> or
|
|
<CODE>DIRECTORIES</CODE>. When set to <CODE>FILES</CODE>, both
|
|
files and directories are shown. Otherwise only directories are
|
|
shown.
|
|
|
|
<H4><A NAME="Fl_FileBrowser.load">int load(const char *directory)</A></H4>
|
|
|
|
<P>Loads the specified directory into the browser. If icons have been
|
|
loaded then the correct icon is associated with each file in the list.
|
|
|
|
</BODY>
|
|
</HTML>
|