Merge branch 'master' into xcircuit-3.10
[xcircuit.git] / Xw / PopupMgrP.h
bloba904134718790e0cc0a806037720e86eeaa36f51
1 /*************************************<+>*************************************
2 *****************************************************************************
3 **
4 ** File: PopupMgrP.h
5 **
6 ** Project: X Widgets
7 **
8 ** Description: Private include file for Popup Menu Manager class widgets
9 **
10 *****************************************************************************
11 **
12 ** Copyright (c) 1988 by Hewlett-Packard Company
13 ** Copyright (c) 1988 by the Massachusetts Institute of Technology
14 **
15 ** Permission to use, copy, modify, and distribute this software
16 ** and its documentation for any purpose and without fee is hereby
17 ** granted, provided that the above copyright notice appear in all
18 ** copies and that both that copyright notice and this permission
19 ** notice appear in supporting documentation, and that the names of
20 ** Hewlett-Packard or M.I.T. not be used in advertising or publicity
21 ** pertaining to distribution of the software without specific, written
22 ** prior permission.
23 **
24 *****************************************************************************
25 *************************************<+>*************************************/
28 /***********************************************************************
30 * Popup Menu Manager Widget Private Data
32 ***********************************************************************/
34 /* New fields for the PopupMgr widget class record */
35 typedef struct {
36 XwPostProc manualPost;
37 } XwPopupMgrClassPart;
39 /* Full class record declaration */
40 typedef struct _XwPopupMgrClassRec {
41 CoreClassPart core_class;
42 CompositeClassPart composite_class;
43 ConstraintClassPart constraint_class;
44 XwManagerClassPart manager_class;
45 XwMenuMgrClassPart menu_mgr_class;
46 XwPopupMgrClassPart popup_mgr_class;
47 } XwPopupMgrClassRec;
49 extern XwPopupMgrClassRec XwpopupmgrClassRec;
51 /* New fields for the PopupMgr widget record */
52 typedef struct {
53 /* Internal fields */
54 unsigned int accelEventType;
55 KeyCode accelKey;
56 unsigned int accelModifiers;
57 Widget topLevelPane;
58 Widget lastSelected;
59 Widget * savedCascadeList;
60 int numSavedCascades;
61 int sizeSavedCascadeList;
62 Widget * currentCascadeList;
63 int numCascades;
64 int sizeCascadeList;
65 XwMenuPaneWidget attachPane;
66 XwMenuPaneWidget detachPane;
67 Position origMouseX;
68 Position origMouseY;
70 /* User settable fields */
71 Boolean stickyMode;
72 String postAccelerator;
73 } XwPopupMgrPart;
76 /****************************************************************
78 * Full instance record declaration
80 ****************************************************************/
82 typedef struct _XwPopupMgrRec {
83 CorePart core;
84 CompositePart composite;
85 ConstraintPart constraint;
86 XwManagerPart manager;
87 XwMenuMgrPart menu_mgr;
88 XwPopupMgrPart popup_mgr;
89 } XwPopupMgrRec;
92 #define XtInheritPopupTravLeft ((XwEventProc) _XtInherit)
93 #define XtInheritPopupTravRight ((XwEventProc) _XtInherit)
94 #define XtInheritPopupTravUp ((XwEventProc) _XtInherit)
95 #define XtInheritPopupTravDown ((XwEventProc) _XtInherit)
96 #define XtInheritPopupTravNext ((XwEventProc) _XtInherit)
97 #define XtInheritPopupTravPrev ((XwEventProc) _XtInherit)
98 #define XtInheritPopupTravHome ((XwEventProc) _XtInherit)
99 #define XtInheritPopupTravNextTop ((XwEventProc) _XtInherit)