appletpopup.h

Go to the documentation of this file.
00001 
00002 /*  $Id: appletpopup.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 #ifndef isFrontier
00008 #define appletpopupinclude
00009 
00010 
00011 #ifndef appletdefsinclude
00012     
00013     #include <appletdefs.h>
00014     
00015 #endif
00016 
00017 
00018 #define popuparrowwidth 16 
00019 
00020 #define popupdrawinset 5
00021 
00022 
00023 typedef boolean (*popupcallback) (void);
00024 
00025 typedef boolean (*popupdrawcontentscallback) (Rect);
00026 
00027 
00028 typedef struct typopuprecord {
00029     
00030     bigstring bs;
00031     
00032     Rect popuprect;
00033     
00034     boolean flarrows;
00035     
00036     boolean flleftarrow, flrightarrow; /*you can have one arrow pointing out of the popup*/
00037     
00038     boolean trackleftarrow, trackrightarrow; /*you can handle mouse tracking*/
00039     
00040     short fontnum, fontsize, fontstyle;
00041     
00042     Rect leftarrowrect;
00043     
00044     Rect rightarrowrect;
00045     
00046     short checkeditem;
00047     
00048     short itemselected;
00049     
00050     short idmenu;
00051     
00052     boolean fldisposemenu;
00053     
00054     MenuHandle hmenu;
00055     
00056     popupcallback getmenucallback;
00057     
00058     popupcallback leftarrowcallback;
00059     
00060     popupcallback rightarrowcallback;
00061     
00062     popupcallback menuselectcallback;
00063     
00064     popupdrawcontentscallback drawcontentscallback;
00065     } typopuprecord;
00066 
00067 
00068     
00069 boolean initpopuprecord (typopuprecord *);
00070 
00071 boolean pushpopupitem (typopuprecord *, bigstring bs, boolean);
00072 
00073 void drawpopup (typopuprecord *);
00074 
00075 boolean popupclick (typopuprecord *);
00076 
00077 boolean adjustpopupcursor (typopuprecord *);
00078 
00079 void idealpopupsize (typopuprecord *, short *, short *);
00080 
00081 #endif

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