35 #ifndef _Fl_File_Browser_H_
36 # define _Fl_File_Browser_H_
38 # include "Fl_Browser.H"
39 # include "Fl_File_Icon.H"
40 # include "filename.H"
51 const char *directory_;
58 void item_draw(
void *,
int,
int,
int,
int)
const;
62 enum { FILES, DIRECTORIES };
80 void filter(
const char *pattern);
86 const char *
filter()
const {
return (pattern_); };
116 #endif // !_Fl_File_Browser_H_
Fl_Fontsize textsize() const
Gets the default text size (in pixels) for the lines in the browser.
Definition: Fl_Browser_.H:291
void iconsize(uchar s)
Sets or gets the size of the icons.
Definition: Fl_File_Browser.H:73
int item_height(void *item) const
Returns height of item in pixels.
Definition: Fl_Browser.cxx:371
int load(const char *filename)
Clears the browser and reads the file, adding each line from the file to the browser.
Definition: Fl_Browser_load.cxx:44
The Fl_File_Browser widget displays a list of filenames, optionally with file-specific icons...
Definition: Fl_File_Browser.H:48
int item_width(void *item) const
Returns width of item in pixels.
Definition: Fl_Browser.cxx:432
void item_draw(void *item, int X, int Y, int W, int H) const
Draws item at the position specified by X Y W H.
Definition: Fl_Browser.cxx:516
uchar iconsize() const
Sets or gets the size of the icons.
Definition: Fl_File_Browser.H:71
int( Fl_File_Sort_F)(struct dirent **, struct dirent **)
File sorting function.
Definition: filename.H:122
int full_height() const
The height of the entire list of all visible() items in pixels.
Definition: Fl_Browser.cxx:494
void filetype(int t)
Sets or gets the file browser type, FILES or DIRECTORIES.
Definition: Fl_File_Browser.H:113
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:741
int filetype() const
Sets or gets the file browser type, FILES or DIRECTORIES.
Definition: Fl_File_Browser.H:106
The Fl_Browser widget displays a scrolling list of text lines, and manages all the storage for the te...
Definition: Fl_Browser.H:89
const char * filter() const
Sets or gets the filename filter.
Definition: Fl_File_Browser.H:86
int incr_height() const
The default 'average' item height (including inter-item spacing) in pixels.
Definition: Fl_Browser.cxx:505
unsigned char uchar
unsigned char
Definition: fl_types.h:39