2 * $XConsortium: SimpleMenP.h,v 1.14 94/04/17 20:12:44 kaleb Exp $
4 Copyright (c) 1989, 1994 X Consortium
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 Except as contained in this notice, the name of the X Consortium shall not be
24 used in advertising or otherwise to promote the sale, use or other dealings
25 in this Software without prior written authorization from the X Consortium.
30 * SimpleMenuP.h - Private Header file for SimpleMenu widget.
34 * By: Chris D. Peterson
36 * kit@expo.lcs.mit.edu
39 #ifndef _SimpleMenuP_h
40 #define _SimpleMenuP_h
42 #include <X11/Xaw/SimpleMenu.h>
43 #include <X11/Xaw/SmeP.h>
44 #include <X11/ShellP.h>
47 XtPointer extension
; /* For future needs. */
48 } SimpleMenuClassPart
;
50 typedef struct _SimpleMenuClassRec
{
51 CoreClassPart core_class
;
52 CompositeClassPart composite_class
;
53 ShellClassPart shell_class
;
54 OverrideShellClassPart override_shell_class
;
55 SimpleMenuClassPart simpleMenu_class
;
58 extern SimpleMenuClassRec simpleMenuClassRec
;
60 typedef struct _SimpleMenuPart
{
64 String label_string
; /* The string for the label or NULL. */
65 SmeObject label
; /* If label_string is non-NULL then this is
67 WidgetClass label_class
; /* Widget Class of the menu label object. */
69 Dimension top_margin
; /* Top and bottom margins. */
70 Dimension bottom_margin
;
71 Dimension row_height
; /* height of each row (menu entry) */
73 Cursor cursor
; /* The menu's cursor. */
74 SmeObject popup_entry
; /* The entry to position the cursor on for
75 when using XawPositionSimpleMenu. */
76 Boolean menu_on_screen
; /* Force the menus to be fully on the screen.*/
77 int backing_store
; /* What type of backing store to use. */
81 Boolean recursive_set_values
; /* contain a possible infinite loop. */
83 Boolean menu_width
; /* If true then force width to remain
85 Boolean menu_height
; /* Just like menu_width, but for height. */
87 SmeObject entry_set
; /* The entry that is currently set or
91 typedef struct _SimpleMenuRec
{
93 CompositePart composite
;
95 OverrideShellPart override
;
96 SimpleMenuPart simple_menu
;
99 #endif /* _SimpleMenuP_h */