3 Copyright 1989, 1994, 1998 The Open Group
5 Permission to use, copy, modify, distribute, and sell this software and its
6 documentation for any purpose is hereby granted without fee, provided that
7 the above copyright notice appear in all copies and that both that
8 copyright notice and this permission notice appear in supporting
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 Except as contained in this notice, the name of The Open Group shall not be
22 used in advertising or otherwise to promote the sale, use or other dealings
23 in this Software without prior written authorization from The Open Group.
25 * Author: Chris D. Peterson, MIT X Consortium
29 * SimpleMenu.h - Public Header file for SimpleMenu widget.
31 * This is the public header file for the Athena SimpleMenu widget.
32 * It is intended to provide one pane pulldown and popup menus within
33 * the framework of the X Toolkit. As the name implies it is a first and
34 * by no means complete implementation of menu code. It does not attempt to
35 * fill the needs of all applications, but does allow a resource oriented
40 * By: Chris D. Peterson
42 * kit@expo.lcs.mit.edu
48 #include <X11/Shell.h>
49 #include <X11/Xmu/Converters.h>
57 Name Class RepType Default Value
58 ---- ----- ------- -------------
59 background Background Pixel XtDefaultBackground
60 backgroundPixmap BackgroundPixmap Pixmap None
61 borderColor BorderColor Pixel XtDefaultForeground
62 borderPixmap BorderPixmap Pixmap None
63 borderWidth BorderWidth Dimension 1
64 bottomMargin VerticalMargins Dimension VerticalSpace
65 columnWidth ColumnWidth Dimension Width of widest text
66 cursor Cursor Cursor None
67 destroyCallback Callback Pointer NULL
68 displayList DisplayList XawDisplayList* NULL
69 height Height Dimension 0
70 label Label String NULL (No label)
71 labelClass LabelClass Pointer smeBSBObjectClass
72 leftMargin HorizontalMargins Dimension 0
73 mappedWhenManaged MappedWhenManaged Boolean True
74 rightMargin HorizontalMargins Dimension 0
75 rowHeight RowHeight Dimension Height of Font
76 sensitive Sensitive Boolean True
77 topMargin VerticalMargins Dimension VerticalSpace
78 width Width Dimension 0
84 typedef struct _SimpleMenuClassRec* SimpleMenuWidgetClass;
85 typedef struct _SimpleMenuRec* SimpleMenuWidget;
87 extern WidgetClass simpleMenuWidgetClass;
89 #define XtNcursor "cursor"
90 #define XtNbottomMargin "bottomMargin"
91 #define XtNcolumnWidth "columnWidth"
92 #define XtNlabelClass "labelClass"
93 #define XtNmenuOnScreen "menuOnScreen"
94 #define XtNpopupOnEntry "popupOnEntry"
95 #define XtNrowHeight "rowHeight"
96 #define XtNtopMargin "topMargin"
97 #define XtNleftMargin "leftMargin"
98 #define XtNrightMargin "rightMargin"
100 #define XtCColumnWidth "ColumnWidth"
101 #define XtCLabelClass "LabelClass"
102 #define XtCMenuOnScreen "MenuOnScreen"
103 #define XtCPopupOnEntry "PopupOnEntry"
104 #define XtCRowHeight "RowHeight"
106 #define XtCVerticalMargins "VerticalMargins"
109 #define XtCHorizontalMargins "HorizontalMargins"
110 #define XawNdisplayList "displayList"
111 #define XawCDisplayList "DisplayList"
112 #define XawRDisplayList "XawDisplayList"
123 * XawSimpleMenuAddGlobalActions
126 * app_con - appcontext
129 * Adds the global actions to the simple menu widget.
131 void XawSimpleMenuAddGlobalActions
138 * XawSimpleMenuGetActiveEntry
144 * Gets the currently active (set) entry.
147 * The currently set entry or NULL if none is set
149 Widget XawSimpleMenuGetActiveEntry
156 * XawSimpleMenuClearActiveEntry
162 * Unsets the currently active (set) entry.
164 void XawSimpleMenuClearActiveEntry
171 #endif /* _SimpleMenu_h */