SmeP.h revision 7a84e134
17a84e134Smrg/*
27a84e134Smrg * $Xorg: SmeP.h,v 1.4 2001/02/09 02:03:46 xorgcvs Exp $
37a84e134Smrg *
47a84e134SmrgCopyright 1989, 1994, 1998  The Open Group
57a84e134Smrg
67a84e134SmrgPermission to use, copy, modify, distribute, and sell this software and its
77a84e134Smrgdocumentation for any purpose is hereby granted without fee, provided that
87a84e134Smrgthe above copyright notice appear in all copies and that both that
97a84e134Smrgcopyright notice and this permission notice appear in supporting
107a84e134Smrgdocumentation.
117a84e134Smrg
127a84e134SmrgThe above copyright notice and this permission notice shall be included in
137a84e134Smrgall copies or substantial portions of the Software.
147a84e134Smrg
157a84e134SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
167a84e134SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
177a84e134SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
187a84e134SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
197a84e134SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
207a84e134SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
217a84e134Smrg
227a84e134SmrgExcept as contained in this notice, the name of The Open Group shall not be
237a84e134Smrgused in advertising or otherwise to promote the sale, use or other dealings
247a84e134Smrgin this Software without prior written authorization from The Open Group.
257a84e134Smrg */
267a84e134Smrg/* $XFree86: xc/lib/Xaw/SmeP.h,v 1.8 2001/12/14 19:54:43 dawes Exp $ */
277a84e134Smrg
287a84e134Smrg/*
297a84e134Smrg * This is the private header file for the Athena Sme object.
307a84e134Smrg * This object is intended to be used with the simple menu widget.
317a84e134Smrg *
327a84e134Smrg * Date:    April 3, 1989
337a84e134Smrg *
347a84e134Smrg * By:      Chris D. Peterson
357a84e134Smrg *          MIT X Consortium
367a84e134Smrg *          kit@expo.lcs.mit.edu
377a84e134Smrg */
387a84e134Smrg
397a84e134Smrg#ifndef _XawSmeP_h
407a84e134Smrg#define _XawSmeP_h
417a84e134Smrg
427a84e134Smrg/*
437a84e134Smrg * Sme Widget Private Data
447a84e134Smrg */
457a84e134Smrg#include <X11/Xfuncproto.h>
467a84e134Smrg
477a84e134Smrg#include <X11/Xaw/Sme.h>
487a84e134Smrg
497a84e134Smrg_XFUNCPROTOBEGIN
507a84e134Smrg
517a84e134Smrg/* New fields for the Sme widget class */
527a84e134Smrgtypedef struct _SmeClassPart {
537a84e134Smrg    XtWidgetProc highlight;
547a84e134Smrg    XtWidgetProc unhighlight;
557a84e134Smrg    XtWidgetProc notify;
567a84e134Smrg    XtPointer	 extension;
577a84e134Smrg} SmeClassPart;
587a84e134Smrg
597a84e134Smrg/* Full class record */
607a84e134Smrgtypedef struct _SmeClassRec {
617a84e134Smrg    RectObjClassPart    rect_class;
627a84e134Smrg    SmeClassPart	sme_class;
637a84e134Smrg} SmeClassRec;
647a84e134Smrg
657a84e134Smrgextern SmeClassRec smeClassRec;
667a84e134Smrg
677a84e134Smrg/* New fields for the Sme widget */
687a84e134Smrgtypedef struct {
697a84e134Smrg    /* resources */
707a84e134Smrg    XtCallbackList callbacks;
717a84e134Smrg    Boolean international;
727a84e134Smrg#ifndef OLDXAW
737a84e134Smrg    XtPointer pad[4];	/* for future use and keep binary compatability */
747a84e134Smrg#endif
757a84e134Smrg} SmePart;
767a84e134Smrg
777a84e134Smrg/* Full instance record */
787a84e134Smrgtypedef struct _SmeRec {
797a84e134Smrg    ObjectPart	object;
807a84e134Smrg    RectObjPart	rectangle;
817a84e134Smrg    SmePart	sme;
827a84e134Smrg} SmeRec;
837a84e134Smrg
847a84e134Smrg#define XtInheritHighlight	((XtWidgetProc)_XtInherit)
857a84e134Smrg#define XtInheritUnhighlight XtInheritHighlight
867a84e134Smrg#define XtInheritNotify      XtInheritHighlight
877a84e134Smrg
887a84e134Smrg_XFUNCPROTOEND
897a84e134Smrg
907a84e134Smrg#endif /* _XawSmeP_h */
91