1
/* $XConsortium: MenuT.h /main/5 1995/07/15 20:53:03 drk $ */
3
* @OPENGROUP_COPYRIGHT@
5
* Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
6
* Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group
7
* ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
8
* the full copyright text.
10
* This software is subject to an open license. It may only be
11
* used on, with or for operating systems which are themselves open
12
* source systems. You must contact The Open Group for a license
13
* allowing distribution and sublicensing of this software on, with,
14
* or for operating systems which are not Open Source programs.
16
* See http://www.opengroup.org/openmotif/license for full
17
* details of the license agreement. Any use, reproduction, or
18
* distribution of the program constitutes recipient's acceptance of
21
* EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
22
* PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23
* KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY
24
* WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
25
* OR FITNESS FOR A PARTICULAR PURPOSE
27
* EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
28
* NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT,
29
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30
* DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED
31
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33
* ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
34
* EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
35
* POSSIBILITY OF SUCH DAMAGES.
50
/* Quick fix for Linux-ARM where "arm" is the #define symbol */
55
/* Menu System Traits */
56
externalref XrmQuark XmQTmenuSystem;
57
externalref XrmQuark XmQTmenuSavvy;
59
/* Trait structures and typedefs, place typedefs first */
61
/* Used by the disable callback method of the menu savvy trait */
63
XmDISABLE_ACTIVATE, /* defer to the entryCallback */
64
XmENABLE_ACTIVATE /* invoke own activate callback */
67
/* Menu trait typedefs */
69
typedef int (*XmMenuSystemWidgetProc)(Widget);
70
typedef Boolean (*XmMenuSystemVerifyProc)(Widget, XEvent*);
71
typedef void (*XmMenuSystemControlTraversalProc)(Widget, Boolean);
72
typedef void (*XmMenuSystemCascadeProc)(Widget, Widget, XEvent*);
73
typedef void (*XmMenuSystemPositionProc)(Widget, XEvent*);
74
typedef Boolean (*XmMenuSystemPopdownProc)(Widget, XEvent*);
75
typedef void (*XmMenuSystemEntryCallbackProc)(Widget, Widget, XtPointer);
76
typedef Boolean (*XmMenuSystemUpdateHistoryProc)(Widget, Widget, Boolean);
77
typedef void (*XmMenuSystemUpdateBindingsProc)(Widget, int);
78
typedef void (*XmMenuSystemRecordPostFromWidgetProc)(Widget, Widget, Boolean);
79
typedef void (*XmMenuSystemDisarmProc)(Widget);
80
typedef Widget (*XmMenuSystemPopupPostedProc)(Widget);
81
typedef void (*XmMenuSavvyDisableProc)(Widget, XmActivateState);
82
typedef char* (*XmMenuSavvyGetAcceleratorProc)(Widget);
83
typedef KeySym (*XmMenuSavvyGetMnemonicProc)(Widget);
84
typedef char* (*XmMenuSavvyGetActivateCBNameProc)();
85
#define XmMenuSystemTypeProc XmMenuSystemWidgetProc
86
#define XmMenuSystemStatusProc XmMenuSystemWidgetProc
87
#define XmMenuSystemGetPostedFromWidgetProc XmMenuSystemDisarmProc
88
#define XmMenuSystemArmProc XmMenuSystemDisarmProc
89
#define XmMenuSystemMenuBarCleanupProc XmMenuSystemDisarmProc
90
#define XmMenuSystemTearOffArmProc XmMenuSystemDisarmProc
91
#define XmMenuSystemReparentProc XmMenuSystemPositionProc
92
#define XmMenuSystemPopdownAllProc XmMenuSystemPositionProc
93
#define XmMenuSystemChildFocusProc XmMenuSystemDisarmProc
95
/* XmTmenuProcTrait */
97
/* Version 0: initial release. */
99
typedef struct _XmMenuSystemTraitRec
102
XmMenuSystemTypeProc type;
103
XmMenuSystemStatusProc status;
104
XmMenuSystemCascadeProc cascade;
105
XmMenuSystemVerifyProc verifyButton;
106
XmMenuSystemControlTraversalProc controlTraversal;
107
XmMenuSystemMenuBarCleanupProc menuBarCleanup;
108
XmMenuSystemPopdownProc popdown;
109
XmMenuSystemPopdownProc buttonPopdown;
110
XmMenuSystemReparentProc reparentToTearOffShell;
111
XmMenuSystemReparentProc reparentToMenuShell;
112
XmMenuSystemArmProc arm;
113
XmMenuSystemDisarmProc disarm;
114
XmMenuSystemTearOffArmProc tearOffArm;
115
XmMenuSystemEntryCallbackProc entryCallback;
116
XmMenuSystemUpdateHistoryProc updateHistory;
117
XmMenuSystemGetPostedFromWidgetProc getLastSelectToplevel;
118
XmMenuSystemPositionProc position;
119
XmMenuSystemUpdateBindingsProc updateBindings;
120
XmMenuSystemRecordPostFromWidgetProc recordPostFromWidget;
121
XmMenuSystemPopdownAllProc popdownEveryone;
122
XmMenuSystemChildFocusProc childFocus;
123
XmMenuSystemPopupPostedProc getPopupPosted;
124
} XmMenuSystemTraitRec, *XmMenuSystemTrait;
126
/* XmTmenuSavvyTrait */
128
/* Version 0: initial release. */
130
typedef struct _XmMenuSavvyTraitRec
133
XmMenuSavvyDisableProc disableCallback;
134
XmMenuSavvyGetAcceleratorProc getAccelerator;
135
XmMenuSavvyGetMnemonicProc getMnemonic;
136
XmMenuSavvyGetActivateCBNameProc getActivateCBName;
137
} XmMenuSavvyTraitRec, *XmMenuSavvyTrait;
140
} /* Close scope of 'extern "C"' declaration which encloses file. */
143
#endif /* _XmMenuT_H */