popup.h

Go to the documentation of this file.
00001 
00002 /*  $Id: popup.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 #define popupinclude /*so other modules can tell that we've been loaded*/
00029 
00030 
00031 #ifndef shelltypesinclude
00032     
00033     #include "shelltypes.h"
00034 
00035 #endif
00036 
00037 
00038 #ifdef MACVERSION
00039     #if TARGET_API_MAC_CARBON == 1
00040     
00041         #define popupwidth 54
00042     #else
00043     
00044         #define popupwidth 45
00045 
00046     #endif
00047     
00048     #define popupheight 16
00049     #define geneva9popupmenuid 257
00050     #define defaultpopupmenuid 258
00051 #endif
00052 
00053 #ifdef WIN95VERSION
00054     #define popupwidth 55
00055     #define popupheight 18
00056     #define geneva9popupmenuid 10000
00057     #define defaultpopupmenuid 10000
00058 #endif
00059 
00060 #define popupfont geneva
00061 #define popupfontsize 9
00062 
00063 typedef boolean (*fillpopupcallback) (hdlmenu, short *);
00064 
00065 typedef boolean (*popupselectcallback) (hdlmenu, short);
00066 
00067 
00068 /*prototypes*/
00069 
00070 extern boolean pushpopupitem (hdlmenu, bigstring, boolean, short);
00071 
00072 extern boolean popupmenuhit (Rect, boolean, fillpopupcallback, popupselectcallback);
00073 
00074 extern boolean drawpopup (Rect, bigstring, boolean);
00075 
00076 extern boolean adjustpopupcursor (Point, Rect);
00077 
00078 
00079 

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