24#ifndef _Fl_File_Browser_H_
25# define _Fl_File_Browser_H_
27# include "Fl_Browser.H"
28# include "Fl_File_Icon.H"
40 const char *directory_;
48 void item_draw(
void *,
int,
int,
int,
int)
const override;
52 enum { FILES, DIRECTORIES };
67 void filter(
const char *pattern);
73 const char *
filter()
const {
return (pattern_); }
92 void errmsg(
const char *emsg);
96 const char*
errmsg()
const {
return errmsg_; }
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:1010
int linespacing() const
Return the height of additional spacing between browser lines.
Definition Fl_Browser_.H:414
The Fl_Browser widget displays a scrolling list of text lines, and manages all the storage for the te...
Definition Fl_Browser.H:86
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:33
int item_width(void *item) const override
Returns width of item in pixels.
Definition Fl_Browser.cxx:421
int item_height(void *item) const override
Returns height of item in pixels.
Definition Fl_Browser.cxx:361
Fl_Fontsize textsize() const
Gets the default text size (in pixels) for the lines in the browser.
Definition Fl_Browser.H:153
int full_height() const override
The height of the entire list of all visible() items in pixels.
Definition Fl_Browser.cxx:480
int incr_height() const override
The default 'average' item height (including inter-item spacing) in pixels.
Definition Fl_Browser.cxx:491
void item_draw(void *item, int X, int Y, int W, int H) const override
Draws item at the position specified by X Y W H.
Definition Fl_Browser.cxx:502
The Fl_File_Browser widget displays a list of filenames, optionally with file-specific icons.
Definition Fl_File_Browser.H:37
const char * errmsg() const
Returns OS error messages, or NULL if none.
Definition Fl_File_Browser.H:96
const char * filter() const
Sets or gets the filename filter.
Definition Fl_File_Browser.H:73
void iconsize(uchar s)
Sets or gets the size of the icons.
Definition Fl_File_Browser.H:60
uchar iconsize() const
Sets or gets the size of the icons.
Definition Fl_File_Browser.H:58
int filetype() const
Sets or gets the file browser type, FILES or DIRECTORIES.
Definition Fl_File_Browser.H:84
void filetype(int t)
Sets or gets the file browser type, FILES or DIRECTORIES.
Definition Fl_File_Browser.H:91
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:112
int fl_numericsort(struct dirent **A, struct dirent **B)
Compares directory entries alphanumerically (case-sensitive).
Definition numericsort.c:127