appletpalette.h

Go to the documentation of this file.
00001 
00002 /*  $Id: appletpalette.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 #define paletteinclude
00008 
00009 
00010 #define maxpaletteitems 50
00011 
00012 
00013 typedef struct typaletteitemrecord {
00014     
00015     boolean selected: 1; /*is the item selected or not?*/
00016     
00017     boolean breakafter: 1; /*start a new sub-palette after this one*/
00018     } typaletteitemrecord;
00019     
00020     
00021 typedef boolean (*typalettecallback) (void);
00022 
00023 
00024 typedef struct typaletterecord { /*one of these in each app window record*/
00025     
00026     WindowPtr macwindow;
00027     
00028     Rect r;
00029     
00030     short sicnresource;
00031     
00032     short cticons;
00033     
00034     short palettewidth;
00035     
00036     typalettecallback itemhitcallback;
00037 
00038     short itemselected;
00039     
00040     typaletteitemrecord item [maxpaletteitems];
00041     } typaletterecord, **hdlpaletterecord;
00042     
00043     
00044 hdlpaletterecord newpalette (WindowPtr, short);
00045 
00046 void disposepalette (hdlpaletterecord);
00047 
00048 void invalpalette (hdlpaletterecord);
00049 
00050 void invalpaletteitem (hdlpaletterecord, short);
00051 
00052 void palettemousedown (hdlpaletterecord);
00053 
00054 void paletteupdate (hdlpaletterecord);
00055 
00056 void paletteactivate (hdlpaletterecord, boolean);
00057 
00058 void paletteselectitem (hdlpaletterecord, short);
00059 
00060 void getpalettesize (hdlpaletterecord, short *, short *);

Generated on Wed May 31 18:19:43 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6