smallicon.h

Go to the documentation of this file.
00001 
00002 /*  $Id: smallicon.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #ifndef smalliconinclude
00029 #define smalliconinclude
00030 
00031 
00032 #define widthsmallicon 16 /*dimensions of a SICN resource*/
00033 #define heightsmallicon 16
00034 
00035 #define miscsmalliconlist 131 /*miscellaneous small icons*/
00036 #define lockicon 0
00037 #define checkedicon 1
00038 #define upflagicon 2
00039 #define downflagicon 3
00040 #define sideflagicon 4
00041 #define closeboxicon 5
00042 #define selectedcloseboxicon 6
00043 #define stophereicon 7
00044 #define blackpopupicon 8
00045 #define graypopupicon 9
00046 
00047 #ifdef version42orgreater
00048     #define moofsmalliconlist 142
00049 
00050 #else
00051     #define xxxdraggingsmalliconlist 130 /*small icons for dragging something*/
00052     #define rightarrowicon 0
00053     #define leftarrowicon 1
00054     #define downarrowicon 2
00055     #define uparrowicon 3
00056 
00057     #define xxxfindersmalliconlist 128 /*small icons for the UserLand finder*/
00058     #define foldericon 0
00059     #define filledfoldericon 1
00060     #define fileicon 2
00061     #define filledfileicon 3
00062     #define programicon 4
00063     #define filledprogramicon 5
00064 
00065     #define xxxleadersmalliconlist 128 /*small icons for the structured display*/
00066     #define fullicon 0
00067     #define emptyicon 1
00068     #define linkedicon 2
00069     #define commenticon 3
00070     #define fullcommenticon 4
00071     #define whiteboxicon 5
00072     #define grayboxicon 6
00073     #define whitediamondicon 7
00074     #define tablefullicon 8
00075     #define tableemptyicon 9
00076     #define tablefullselicon 10
00077     #define tableemptyselicon 11
00078     #define whiteclosedfoldericon 12
00079     #define blackclosedfoldericon 13
00080     #define whiteopenfoldericon 14
00081     #define blackopenfoldericon 15
00082 
00083     #define xxxcirclesmalliconlist 132 /*different shades of circles*/
00084     #define whitecircleicon 0
00085     #define blackcircleicon 1
00086     #define graycircleicon 2
00087 
00088     #define xxxtablesmalliconlist 134 /*icons that appear in front of table entries*/
00089     #define scalaricon 0
00090     #define tableicon 1
00091     #define wordicon 2
00092     #define picticon 3
00093     #define outlineicon 4
00094     #define scripticon 5
00095     #define menuicon 6
00096     #define unknownicon 7
00097 #endif
00098 
00099 
00100 typedef enum tyfillstate {
00101     
00102     filledwithblack, 
00103     
00104     filledwithgray, 
00105     
00106     filledwithwhite
00107     } tyfillstate;
00108 
00109 
00110 typedef char smalliconbits [32];
00111 
00112 typedef smalliconbits *ptrsmalliconbits, **hdlsmalliconbits;
00113 
00114 
00115 typedef struct tysmalliconspec { /*bundle all the plotting parameters into a record*/
00116     
00117     hdlsmalliconbits hbits; /*if nil, use iconlist*/
00118     
00119     short iconlist;
00120     
00121     short iconnum;
00122     
00123     WindowPtr iconwindow;
00124     
00125     Rect iconrect;
00126     
00127     boolean flinverted: 1;
00128     
00129     boolean flclearwhatsthere: 1;
00130     } tysmalliconspec;
00131 
00132 /*prototypes*/
00133 
00134 extern boolean displaypopupicon (Rect, boolean);
00135 
00136 extern boolean displayleadericon (Rect, tyfillstate);
00137 
00138 extern boolean plotsmallicon (tysmalliconspec);
00139 
00140 extern boolean loadsmallicon (short, hdlsmalliconbits *);
00141 
00142 extern boolean initsmallicons (void);
00143 
00144 extern boolean myMoof (short, long);
00145 
00146 #endif
00147 
00148 

Generated on Wed May 31 18:20:02 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6