fltk
1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Fossies Dox: fltk-1.3.5-source.tar.bz2 ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 40 #include <sys/types.h> 42 #if (defined(WIN32) && ! defined(__CYGWIN__)) || defined(__EMX__) 60 # define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 61 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 62 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 63 # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 64 # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 97 memcpy(
data_, d, nd *
sizeof(
short));
123 prev = current, current = current->
next_) {}
186 struct stat fileinfo;
207 else if (
S_ISFIFO(fileinfo.st_mode))
210 # if defined(S_ICHR) && defined(S_IBLK) 213 # endif // S_ICHR && S_IBLK 215 else if (
S_ISLNK(fileinfo.st_mode))
268 scale = w < h ? w : h;
272 (
float)
y + 0.5 * ((
float)h + scale));
308 oc = (
Fl_Color)((((
unsigned short *)prim)[1] << 16) |
309 ((
unsigned short *)prim)[2]);
330 fl_vertex(prim[1] * 0.0001, prim[2] * 0.0001);
344 c = (
Fl_Color)((((
unsigned short *)d)[1] << 16) |
345 ((
unsigned short *)d)[2]);
410 oc = (
Fl_Color)((((
unsigned short *)prim)[1] << 16) |
411 ((
unsigned short *)prim)[2]);
432 fl_vertex(prim[1] * 0.0001, prim[2] * 0.0001);
void fl_begin_complex_polygon()
void draw(int x, int y, int w, int h, Fl_Color ic, int active=1)
draws the icon associated with the text
void fl_color(Fl_Color c)
static void labeltype(const Fl_Label *o, int x, int y, int w, int h, Fl_Align a)
int fl_filename_isdir(const char *name)
static Fl_File_Icon * first_
static Fl_File_Icon * find(const char *filename, int filetype=ANY)
void fl_translate(double x, double y)
header for Unicode and UTF-8 character handling
int fl_filename_match(const char *name, const char *pattern)
utility header to pull drawing functions together
static const char * filename
const char * fl_filename_name(const char *filename)
Fl_Color fl_inactive(Fl_Color c)
int fl_stat(const char *path, struct stat *buffer)
static void set_labeltype(Fl_Labeltype, Fl_Label_Draw_F *, Fl_Label_Measure_F *)
void fl_vertex(double x, double y)
void fl_end_complex_polygon()
Fl_File_Icon(const char *p, int t, int nd=0, short *d=0)
void fl_scale(double x, double y)