24#ifndef _Fl_Fl_File_Icon_H_
25# define _Fl_Fl_File_Icon_H_
34# define FL_ICON_COLOR (Fl_Color)0xffffffff
78 Fl_File_Icon(
const char *p,
int t,
int nd = 0,
short *d = 0);
88 {
short *d = add((
short)COLOR); add((
short)(c >> 16)); add((
short)c);
return (d); }
97 {
short *d = add((
short)VERTEX); add((
short)x); add((
short)y);
return (d); }
106 {
short *d = add((
short)VERTEX); add((
short)(x * 10000.0));
107 add((
short)(y * 10000.0));
return (d); }
112 void draw(
int x,
int y,
int w,
int h,
Fl_Color ic,
int active = 1);
116 static void labeltype(
const Fl_Label *o,
int x,
int y,
int w,
int h,
Fl_Align a);
117 void load(
const char *f);
118 int load_fti(
const char *fti);
119 int load_image(
const char *i);
128 int size() {
return (num_data_); }
146 static Fl_File_Icon *find(
const char *filename,
int filetype = ANY);
150 static void load_system_icons(
void);
unsigned Fl_Align
FLTK type for alignment control.
Definition Enumerations.H:984
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition Enumerations.H:1118
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:45
int type()
Returns the filetype associated with the icon, which can be one of the following:
Definition Fl_File_Icon.H:141
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:96
const char * pattern()
Returns the filename matching pattern for the icon.
Definition Fl_File_Icon.H:125
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:105
static Fl_File_Icon * first()
Returns a pointer to the first icon in the list.
Definition Fl_File_Icon.H:149
int size()
Returns the number of words of data used by the icon.
Definition Fl_File_Icon.H:128
Fl_File_Icon * next()
Returns next file icon object.
Definition Fl_File_Icon.H:122
short * value()
Returns the data array for the icon.
Definition Fl_File_Icon.H:144
void clear()
Clears all icon data from the icon.
Definition Fl_File_Icon.H:110
short * add_color(Fl_Color c)
Adds a color value to the icon array, returning a pointer to it.
Definition Fl_File_Icon.H:87
This struct stores all information for a text or mixed graphics label.
Definition Fl_Widget.H:49