26#ifndef _Fl_Fl_File_Icon_H_
27# define _Fl_Fl_File_Icon_H_
36# define FL_ICON_COLOR (Fl_Color)0xffffffff
80 Fl_File_Icon(
const char *p,
int t,
int nd = 0,
short *d = 0);
90 {
short *d = add((
short)COLOR); add((
short)(c >> 16)); add((
short)c);
return (d); }
99 {
short *d = add((
short)VERTEX); add((
short)x); add((
short)y);
return (d); }
108 {
short *d = add((
short)VERTEX); add((
short)(x * 10000.0));
109 add((
short)(y * 10000.0));
return (d); }
114 void draw(
int x,
int y,
int w,
int h,
Fl_Color ic,
int active = 1);
118 static void labeltype(
const Fl_Label *o,
int x,
int y,
int w,
int h,
Fl_Align a);
119 void load(
const char *f);
120 int load_fti(
const char *fti);
121 int load_image(
const char *i);
130 int size() {
return (num_data_); }
148 static Fl_File_Icon *find(
const char *filename,
int filetype = ANY);
152 static void load_system_icons(
void);
unsigned Fl_Align
FLTK type for alignment control.
Definition: Enumerations.H:826
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition: Enumerations.H:932
The Fl_File_Icon class manages icon images that can be used as labels in other widgets and as icons i...
Definition: Fl_File_Icon.H:47
int type()
Returns the filetype associated with the icon, which can be one of the following:
Definition: Fl_File_Icon.H:143
short * add_vertex(int x, int y)
Adds a vertex value to the icon array, returning a pointer to it.
Definition: Fl_File_Icon.H:98
const char * pattern()
Returns the filename matching pattern for the icon.
Definition: Fl_File_Icon.H:127
short * add_vertex(float x, float y)
Adds a vertex value to the icon array, returning a pointer to it.
Definition: Fl_File_Icon.H:107
static Fl_File_Icon * first()
Returns a pointer to the first icon in the list.
Definition: Fl_File_Icon.H:151
int size()
Returns the number of words of data used by the icon.
Definition: Fl_File_Icon.H:130
Fl_File_Icon * next()
Returns next file icon object.
Definition: Fl_File_Icon.H:124
short * value()
Returns the data array for the icon.
Definition: Fl_File_Icon.H:146
void clear()
Clears all icon data from the icon.
Definition: Fl_File_Icon.H:112
short * add_color(Fl_Color c)
Adds a color value to the icon array, returning a pointer to it.
Definition: Fl_File_Icon.H:89
This struct stores all information for a text or mixed graphics label.
Definition: Fl_Widget.H:65