MenuButtoP.h revision 7a84e134
17a84e134Smrg/* $Xorg: MenuButtoP.h,v 1.4 2001/02/09 02:03:44 xorgcvs Exp $
27a84e134Smrg *
37a84e134SmrgCopyright 1989,1998  The Open Group
47a84e134Smrg
57a84e134SmrgPermission to use, copy, modify, distribute, and sell this software and its
67a84e134Smrgdocumentation for any purpose is hereby granted without fee, provided that
77a84e134Smrgthe above copyright notice appear in all copies and that both that
87a84e134Smrgcopyright notice and this permission notice appear in supporting
97a84e134Smrgdocumentation.
107a84e134Smrg
117a84e134SmrgThe above copyright notice and this permission notice shall be included in
127a84e134Smrgall copies or substantial portions of the Software.
137a84e134Smrg
147a84e134SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
157a84e134SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
167a84e134SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
177a84e134SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
187a84e134SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
197a84e134SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
207a84e134Smrg
217a84e134SmrgExcept as contained in this notice, the name of The Open Group shall not be
227a84e134Smrgused in advertising or otherwise to promote the sale, use or other dealings
237a84e134Smrgin this Software without prior written authorization from The Open Group.
247a84e134Smrg */
257a84e134Smrg/* $XFree86: xc/lib/Xaw/MenuButtoP.h,v 1.7 2001/01/17 19:42:27 dawes Exp $ */
267a84e134Smrg
277a84e134Smrg/*
287a84e134Smrg * MenuButtonP.h - Private Header file for MenuButton widget.
297a84e134Smrg *
307a84e134Smrg * This is the private header file for the Athena MenuButton widget.
317a84e134Smrg * It is intended to provide an easy method of activating pulldown menus.
327a84e134Smrg *
337a84e134Smrg * Date:    May 2, 1989
347a84e134Smrg *
357a84e134Smrg * By:      Chris D. Peterson
367a84e134Smrg *          MIT X Consortium
377a84e134Smrg *          kit@expo.lcs.mit.edu
387a84e134Smrg */
397a84e134Smrg
407a84e134Smrg#ifndef _XawMenuButtonP_h
417a84e134Smrg#define _XawMenuButtonP_h
427a84e134Smrg
437a84e134Smrg#include <X11/Xaw/MenuButton.h>
447a84e134Smrg#include <X11/Xaw/CommandP.h>
457a84e134Smrg
467a84e134Smrg/* New fields for the MenuButton widget class */
477a84e134Smrgtypedef struct _MenuButtonClass {
487a84e134Smrg    XtPointer extension;
497a84e134Smrg} MenuButtonClassPart;
507a84e134Smrg
517a84e134Smrg/* class record declaration */
527a84e134Smrgtypedef struct _MenuButtonClassRec {
537a84e134Smrg    CoreClassPart	    core_class;
547a84e134Smrg    SimpleClassPart	    simple_class;
557a84e134Smrg    LabelClassPart	    label_class;
567a84e134Smrg    CommandClassPart	    command_class;
577a84e134Smrg    MenuButtonClassPart	    menuButton_class;
587a84e134Smrg} MenuButtonClassRec;
597a84e134Smrg
607a84e134Smrgextern MenuButtonClassRec menuButtonClassRec;
617a84e134Smrg
627a84e134Smrg/* New fields for the MenuButton widget */
637a84e134Smrgtypedef struct {
647a84e134Smrg    /* resources */
657a84e134Smrg    String menu_name;
667a84e134Smrg#ifndef OLDXAW
677a84e134Smrg    XtPointer pad[4];	/* for future use and keep binary compatability */
687a84e134Smrg#endif
697a84e134Smrg} MenuButtonPart;
707a84e134Smrg
717a84e134Smrg/* widget declaration */
727a84e134Smrgtypedef struct _MenuButtonRec {
737a84e134Smrg    CorePart         core;
747a84e134Smrg    SimplePart	     simple;
757a84e134Smrg    LabelPart	     label;
767a84e134Smrg    CommandPart	     command;
777a84e134Smrg    MenuButtonPart   menu_button;
787a84e134Smrg} MenuButtonRec;
797a84e134Smrg
807a84e134Smrg#endif /* _XawMenuButtonP_h */
81