Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:24

0001 /*
0002  *
0003 Copyright 1989,1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024  */
0025 
0026 /*
0027  * MenuButtonP.h - Private Header file for MenuButton widget.
0028  *
0029  * This is the private header file for the Athena MenuButton widget.
0030  * It is intended to provide an easy method of activating pulldown menus.
0031  *
0032  * Date:    May 2, 1989
0033  *
0034  * By:      Chris D. Peterson
0035  *          MIT X Consortium
0036  *          kit@expo.lcs.mit.edu
0037  */
0038 
0039 #ifndef _XawMenuButtonP_h
0040 #define _XawMenuButtonP_h
0041 
0042 #include <X11/Xaw/MenuButton.h>
0043 #include <X11/Xaw/CommandP.h>
0044 
0045 /* New fields for the MenuButton widget class */
0046 typedef struct _MenuButtonClass {
0047     XtPointer extension;
0048 } MenuButtonClassPart;
0049 
0050 /* class record declaration */
0051 typedef struct _MenuButtonClassRec {
0052     CoreClassPart       core_class;
0053     SimpleClassPart     simple_class;
0054     LabelClassPart      label_class;
0055     CommandClassPart        command_class;
0056     MenuButtonClassPart     menuButton_class;
0057 } MenuButtonClassRec;
0058 
0059 extern MenuButtonClassRec menuButtonClassRec;
0060 
0061 /* New fields for the MenuButton widget */
0062 typedef struct {
0063     /* resources */
0064     char * menu_name;
0065 #ifndef OLDXAW
0066     XtPointer pad[4];   /* for future use and keep binary compatibility */
0067 #endif
0068 } MenuButtonPart;
0069 
0070 /* widget declaration */
0071 typedef struct _MenuButtonRec {
0072     CorePart         core;
0073     SimplePart       simple;
0074     LabelPart        label;
0075     CommandPart      command;
0076     MenuButtonPart   menu_button;
0077 } MenuButtonRec;
0078 
0079 #endif /* _XawMenuButtonP_h */