4 * This source code is part of
8 * GROningen MAchine for Chemical Simulations
12 * Copyright (c) 1991-1999
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
17 * GROMACS: A message-passing parallel molecular dynamics implementation
18 * H.J.C. Berendsen, D. van der Spoel and R. van Drunen
19 * Comp. Phys. Comm. 91, 43-56 (1995)
21 * Also check out our WWW page:
22 * http://md.chem.rug.nl/~gmx
27 * Great Red Oystrich Makes All Chemists Sane
33 static char *SRCID_pulldown_h = "$Id$";
36 #ident "@(#) pulldown.h 1.4 11/23/92"
37 #endif /* HAVE_IDENT */
49 extern t_pulldown *init_pd(t_x11 *x11,Window Parent,int width,int height,
50 unsigned long fg,unsigned long bg,
51 int nmenu,int *nsub,t_mentry *ent[],char **title);
52 /* nmenu is the number of submenus, title are the titles of
53 * the submenus, nsub are the numbers of entries in each submenu
54 * ent are the entries in the pulldown menu, analogous to these in the
56 * The Parent is the parent window, the width is the width of the parent
57 * window. The Menu is constructed as a bar on the topside of the window
58 * (as usual). It calculates it own height by the font size.
60 * !!! Do not destroy the ent structure, or the titles, while using
63 * When the menu is selected, a ClientMessage will be sent to the Parent
64 * specifying the selected item in xclient.data.l[0].
67 extern void hide_pd(t_x11 *x11,t_pulldown *pd);
68 /* Hides any menu that is still on the screen when it shouldn't */
70 extern void check_pd_item(t_pulldown *pd,int nreturn,bool bStatus);
71 /* Set the bChecked field in the pd item with return code
72 * nreturn to bStatus. This function must always be called when
73 * the bChecked flag has to changed.
76 extern void done_pd(t_x11 *x11,t_pulldown *pd);
77 /* This routine destroys the menu pd, and unregisters it with x11 */
79 extern int pd_width(t_pulldown *pd);
80 /* Return the width of the window */
82 extern int pd_height(t_pulldown *pd);
83 /* Return the height of the window */
85 #endif /* _pulldown_h */