File: menu.h

package info (click to toggle)
viewmol 2.3-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 9,424 kB
  • ctags: 2,239
  • sloc: ansic: 29,098; sh: 909; makefile: 513; python: 238
file content (44 lines) | stat: -rw-r--r-- 1,602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*******************************************************************************
*                                                                              *
*                                   Viewmol                                    *
*                                                                              *
*                                 M E N U . H                                  *
*                                                                              *
*                 Copyright (c) Joerg-R. Hill, December 2000                   *
*                                                                              *
********************************************************************************
*
* $Id: menu.h,v 1.5 2000/12/10 15:11:11 jrh Exp $
* $Log: menu.h,v $
* Revision 1.5  2000/12/10 15:11:11  jrh
* Release 2.3
*
* Revision 1.4  1999/05/24 01:28:42  jrh
* Release 2.2.1
*
* Revision 1.3  1999/02/07 21:52:09  jrh
* Release 2.2
*
* Revision 1.2  1998/01/26 00:48:30  jrh
* Release 2.1
*
* Revision 1.1  1996/12/10  18:45:49  jrh
* Initial revision
*
*/
struct MenuItem
{
    char        *label;          /* the label for the item */
    WidgetClass *class;          /* pushbutton, label, separator... */
    void       (*callback)();    /* routine to call; NULL if none */
    XtPointer    callback_data;  /* client_data for callback() */
    Widget      widget;          /* the widget of the menu item */
    struct MenuItem *subitems;   /* pullright menu items, if not NULL */
};

struct MENUDATA
{
  struct MenuItem *submenu;
  int window;
  int which;
};