26#ifndef _Fl_File_Browser_H_
27# define _Fl_File_Browser_H_
29# include "Fl_Browser.H"
30# include "Fl_File_Icon.H"
42 const char *directory_;
46 int full_height()
const;
47 int item_height(
void *)
const;
48 int item_width(
void *)
const;
49 void item_draw(
void *,
int,
int,
int,
int)
const;
50 int incr_height()
const {
return (item_height(0)); }
53 enum { FILES, DIRECTORIES };
71 void filter(
const char *pattern);
77 const char *
filter()
const {
return (pattern_); };
86 int load(
const char *directory,
Fl_File_Sort_F *sort = fl_numericsort);
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:913
Fl_Browser(int X, int Y, int W, int H, const char *L=0)
The constructor makes an empty browser.
Definition Fl_Browser.cxx:603
Fl_Fontsize textsize() const
Gets the default text size (in pixels) for the lines in the browser.
Definition Fl_Browser.H:147
const char * filter() const
Sets or gets the filename filter.
Definition Fl_File_Browser.H:77
Fl_File_Browser(int, int, int, int, const char *=0)
The constructor creates the Fl_File_Browser widget at the specified position and size.
Definition Fl_File_Browser.cxx:411
void iconsize(uchar s)
Sets or gets the size of the icons.
Definition Fl_File_Browser.H:64
uchar iconsize() const
Sets or gets the size of the icons.
Definition Fl_File_Browser.H:62
int filetype() const
Sets or gets the file browser type, FILES or DIRECTORIES.
Definition Fl_File_Browser.H:97
void filetype(int t)
Sets or gets the file browser type, FILES or DIRECTORIES.
Definition Fl_File_Browser.H:104
File names and URI utility functions.
unsigned char uchar
unsigned char
Definition fl_types.h:30
int Fl_File_Sort_F(struct dirent **, struct dirent **)
File sorting function.
Definition filename.H:116