diff options
author | Benjamin Barenblat <bbarenblat@gmail.com> | 2021-11-23 23:13:26 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbarenblat@gmail.com> | 2021-11-23 23:13:26 -0500 |
commit | e5df1aafb6d1346207343ccb858fa373e6b86301 (patch) | |
tree | fb26f0091dda7dd69d48d6b06169ea618332b99e /SrcUnix/espws-2.0/FileIcon.html |
Check in the Palm OS Emulator, version 3.5 (2001). These files come from
the tarball present in the Debian archives [1]. The SHA-256 digest of
the tarball, c5e0d23424e88525bfba0ecdf0a432a8d93c885d04740df06a9eeee44e5f25e4,
matches the digest preserved in the FreeBSD ports tree [2], giving
further confidence that these files are as distributed by upstream.
[1] http://archive.debian.org/debian/pool/contrib/p/pose/
[2] https://svnweb.freebsd.org/ports/head/palm/pose/distinfo?revision=271305&view=markup&pathrev=282162
Diffstat (limited to 'SrcUnix/espws-2.0/FileIcon.html')
-rw-r--r-- | SrcUnix/espws-2.0/FileIcon.html | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/SrcUnix/espws-2.0/FileIcon.html b/SrcUnix/espws-2.0/FileIcon.html new file mode 100644 index 0000000..bd60fb9 --- /dev/null +++ b/SrcUnix/espws-2.0/FileIcon.html @@ -0,0 +1,165 @@ +<HTML> +<HEAD> + <TITLE>FileIcon - ESP Widget Set for FLTK</TITLE> + <LINK REL="STYLESHEET" TYPE="text/css" HREF="fltk.css"> + <MAP NAME="navbar"> + <AREA SHAPE="RECT" COORD="20,19,74,36" HREF="index.html" ALT="Widget Set Home Page"> + <AREA SHAPE="RECT" COORD="96,19,240,36" HREF="documentation.html" ALT="Widget Set Documentation"> + <AREA SHAPE="RECT" COORD="262,19,356,36" HREF="download.html" ALT="Download Widget Set"> + <AREA SHAPE="RECT" COORD="378,19,416,36" HREF="http://www.easysw.com" ALT="ESP Home Page"> + <AREA SHAPE="RECT" COORD="438,19,487,36" HREF="http://www.fltk.org" ALT="FLTK Home Page"> + </MAP> +</HEAD> + +<BODY BGCOLOR="#ccccff"> + +<!-- NEW PAGE --> +<H2>class FileIcon</H2> + +<HR> + +<H3>Class Hierarchy</H3> + +<UL><PRE> +<B>FileIcon</B> +</PRE></UL> + +<H3>Include Files</H3> + +<UL><PRE> +#include "FileIcon.h" +</PRE></UL> + +<H3>Description</H3> + +<P>The <CODE>FileIcon</CODE> class manages icon images that can be +used as labels in other widgets and as icons in the <CODE>FileBrowser</CODE> +widget. + +<H3>Methods</H3> + +<UL> + + <LI><A HREF="#FileIcon.FileIcon">FileIcon</A> + <LI><A HREF="#FileIcon.~FileIcon">~FileIcon</A> + <LI><A HREF="#FileIcon.add">add</A> + <LI><A HREF="#FileIcon.add_color">add_color</A> + <LI><A HREF="#FileIcon.add_vertex">add_vertex</A> + <LI><A HREF="#FileIcon.clear">clear</A> + <LI><A HREF="#FileIcon.draw">draw</A> + <LI><A HREF="#FileIcon.find">find</A> + <LI><A HREF="#FileIcon.first">first</A> + <LI><A HREF="#FileIcon.label">label</A> + <LI><A HREF="#FileIcon.labeltype">labeltype</A> + <LI><A HREF="#FileIcon.load_fti">load_fti</A> + <LI><A HREF="#FileIcon.load">load</A> + <LI><A HREF="#FileIcon.load_system_icons">load_system_icons</A> + <LI><A HREF="#FileIcon.load_xpm">load_xpm</A> + <LI><A HREF="#FileIcon.pattern">pattern</A> + <LI><A HREF="#FileIcon.size">size</A> + <LI><A HREF="#FileIcon.type">type</A> + <LI><A HREF="#FileIcon.value">value</A> + +</UL> + +<H4><A NAME="FileIcon.FileIcon">FileIcon()</A></H4> + +<P>The constructor creates a new <CODE>FileIcon</CODE> with the specified +information. + +<H4><A NAME="FileIcon.~FileIcon">~FileIcon()</A></H4> + +<P>The destructor destroys the icon and frees all memory that has been +allocated for it. + +<H4><A NAME="FileIcon.add">short *add(short d)</A></H4> + +<P>Adds a keyword value to the icon array, returning a pointer to it. + +<H4><A NAME="FileIcon.add_color">short *add_color(short c)</A></H4> + +<P>Adds a color value to the icon array, returning a pointer to it. + +<H4><A NAME="FileIcon.add_vertex">short *add_vertex(int x, int y)<BR> +short *add_vertex(float x, float y)</A></H4> + +<P>Adds a vertex value to the icon array, returning a pointer to it. +The integer version accepts coordinates from 0 to 10000, while the +floating point version goes from 0.0 to 1.0. The origin (0.0) is in +the lower-lefthand corner of the icon. + +<H4><A NAME="FileIcon.clear">void clear()</A></H4> + +<P>Clears all icon data from the icon. + +<H4><A NAME="FileIcon.draw">void draw(int x, int y, int w, int h, Fl_Color ic, int active = 1)</A></H4> + +<P>Draws the icon in the indicated area. + +<H4><A NAME="FileIcon.find">static FileIcon *find(const char *filename, int filetype = ANY);</A></H4> + +<P>Finds an icon that matches the given filename and file type. + +<H4><A NAME="FileIcon.first">static FileIcon *first()</A></H4> + +<P>Returns a pointer to the first icon in the list. + +<H4><A NAME="FileIcon.label">void label(Fl_Widget *w)</A></H4> + +<P>Applies the icon to the widget, registering the <CODE>FileIcon</CODE> +label type as needed. + +<H4><A NAME="FileIcon.labeltype">static void labeltype(const Fl_Label *o, int x, int y, int w, int h, Fl_Align a)</A></H4> + +<P>The labeltype function for icons. + +<H4><A NAME="FileIcon.load">void load(const char *f)</A></H4> + +<P>Loads the specified icon image. The format is deduced from the filename. + +<H4><A NAME="FileIcon.load_fti">void load_fti(const char *fti)</A></H4> + +<P>Loads an SGI icon file. + +<H4><A NAME="FileIcon.load_system_icons">static void load_system_icons(void)</A></H4> + +<P>Loads all system-defined icons. This call is useful when using the +<CODE>FileChooser</CODE> widget and should be used when the application +starts: + +<UL><PRE> +FileIcon::load_system_icons(); +</PRE></UL> + +<H4><A NAME="FileIcon.load_xpm">void load_xpm(const char *xpm)</A></H4> + +<P>Loads an XPM icon file. + +<H4><A NAME="FileIcon.pattern">const char *pattern()</A></H4> + +<P>Returns the filename matching pattern for the icon. + +<H4><A NAME="FileIcon.size">int size()</A></H4> + +<P>Returns the number of words of data used by the icon. + +<H4><A NAME="FileIcon.type">int type()</A></H4> + +<P>Returns the filetype associated with the icon, which can be one of the +following: + +<UL> + <LI><CODE>FileIcon::ANY</CODE>, any kind of file. + <LI><CODE>FileIcon::PLAIN</CODE>, plain files. + <LI><CODE>FileIcon::FIFO</CODE>, named pipes. + <LI><CODE>FileIcon::DEVICE</CODE>, character and block devices. + <LI><CODE>FileIcon::LINK</CODE>, symbolic links. + <LI><CODE>FileIcon::DIRECTORY</CODE>, directories. +</UL> + +<H4><A NAME="FileIcon.value">short *value()</A></H4> + +<P>Returns the data array for the icon. + +</BODY> +</HTML> |