File: Fl_File_Browser.html

package info (click to toggle)
fltk1.1 1.1.7-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 13,204 kB
  • ctags: 13,317
  • sloc: cpp: 67,103; ansic: 39,395; makefile: 1,619; sh: 412
file content (81 lines) | stat: -rw-r--r-- 2,379 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<HTML>
<BODY>

<!-- NEW PAGE -->
<H2><A NAME="Fl_File_Browser">class Fl_File_Browser</A></H2>

<HR>

<H3>Class Hierarchy</H3>

<UL><PRE>
<A HREF="Fl_Browser.html#Fl_Browser">Fl_Browser</A>
   |
   +----<B>Fl_File_Browser</B>
</PRE></UL>

<H3>Include Files</H3>

<UL><PRE>
#include &lt;FL/Fl_File_Browser.H>
</PRE></UL>

<H3>Description</H3>

<P>The <CODE>Fl_File_Browser</CODE> widget displays a list of filenames,
optionally with file-specific icons.

<H3>Methods</H3>

<UL>

	<LI><A HREF="#Fl_File_Browser.Fl_File_Browser">Fl_File_Browser</A>
	<LI><A HREF="#Fl_File_Browser.~Fl_File_Browser">~Fl_File_Browser</A>
	<LI><A HREF="#Fl_File_Browser.iconsize">iconsize</A>
	<LI><A HREF="#Fl_File_Browser.filter">filter</A>
	<LI><A HREF="#Fl_File_Browser.filetype">filetype</A>
	<LI><A HREF="#Fl_File_Browser.load">load</A>

</UL>

<H4><A NAME="Fl_File_Browser.Fl_File_Browser">Fl_File_Browser(int xx, int yy, int ww, int hh, const char *l = 0)</A></H4>

<P>The constructor creates the <CODE>Fl_File_Browser</CODE> widget at the specified
position and size.

<H4><A NAME="Fl_File_Browser.~Fl_File_Browser">~Fl_File_Browser()</A></H4>

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

<H4><A NAME="Fl_File_Browser.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_File_Browser.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 <A
HREF="functions.html#fl_filename_match"><CODE>fl_filename_match()</CODE></A>
function in FLTK.

<H4><A NAME="Fl_File_Browser.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_File_Browser.load">int load(const char *directory, Fl_File_Sort_F *sort = fl_numeric_sort)</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.

<P>The <tt>sort</tt> argument specifies a sort function to be used with
<A HREF="functions.html#fl_filename_list"><tt>fl_filename_list()</tt></A>.

</BODY>
</HTML>