dtwm: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtwm / WmMenu.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 #ifndef _WM_MENU_H
24 #define _WM_MENU_H
25
26 /* 
27  * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. 
28  * ALL RIGHTS RESERVED 
29 */ 
30 /* 
31  * Motif Release 1.2.2
32 */ 
33 /*
34  * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
35
36 #define MAKE_MENU(pSD, pCD, mName, iC, aC, moreItems, sysMenu) \
37         MakeMenu(pSD, mName, iC, aC, moreItems, sysMenu)
38 #define CREATE_MENU_WIDGET(pSD, pCD, mName, parent, fTLP, tSpec, moreItems) \
39         CreateMenuWidget(pSD, mName, parent, fTLP, tSpec, moreItems)
40
41 extern void ActivateCallback (Widget w, caddr_t client_data, 
42                               caddr_t call_data);
43 extern Widget CreateMenuWidget (WmScreenData *pSD,
44                                 String menuName, Widget parent,
45                                 Boolean fTopLevelPane, MenuSpec *topMenuSpec,
46                                 MenuItem *moreMenuItems);
47 extern void FreeCustomMenuSpec (MenuSpec *menuSpec);
48 extern void MWarning (char *format, char *message);
49 extern MenuSpec *MakeMenu (WmScreenData *pSD,
50                            String menuName, 
51                            Context initialContext, Context accelContext, 
52                            MenuItem *moreMenuItems, Boolean fSystemMenu);
53 extern void PostMenu (MenuSpec *menuSpec, ClientData *pCD, int x, int y, 
54                       unsigned int button, Context newContext, long flags, 
55                       XEvent *passedInEvent);
56 extern void TraversalOff (MenuSpec *menuSpec);
57 extern void TraversalOn (MenuSpec *menuSpec);
58 extern void UnpostMenu (MenuSpec *menuSpec);
59 extern MenuSpec *DuplicateMenuSpec (MenuSpec *menuSpec);
60
61 #endif /* _WM_MENU_H */