home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / s / stex2-18.zip / SeeTeX / Xtex / EzMEP.h < prev    next >
C/C++ Source or Header  |  1991-02-19  |  3KB  |  101 lines

  1. /*
  2.  * $XConsortium: SmeP.h,v 1.4 89/12/11 15:20:22 kit Exp $
  3.  *
  4.  * Copyright 1989 Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of M.I.T. not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  M.I.T. makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  17.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  18.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  20.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  21.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  */
  23.  
  24. /*
  25.  * SmeP.h - Private Header file for Sme object.
  26.  *
  27.  * This is the private header file for the Athena EzME object.
  28.  * This object is intended to be used with the simple menu widget.  
  29.  *
  30.  * Date:    April 3, 1989
  31.  *
  32.  * By:      Chris D. Peterson
  33.  *          MIT X Consortium 
  34.  *          kit@expo.lcs.mit.edu
  35.  */
  36.  
  37. #ifndef _XawEzMEP_h
  38. #define _XawEzMEP_h
  39.  
  40. /***********************************************************************
  41.  *
  42.  * EzME Widget Private Data
  43.  *
  44.  ***********************************************************************/
  45.  
  46. #include <X11/RectObjP.h>
  47. #include <X11/Xaw/SmeP.h>
  48. #include <X11/Xaw/SmeBSBP.h>
  49. #include "EzME.h"
  50.  
  51. /************************************************************
  52.  *
  53.  * New fields for the EzME widget class record.
  54.  *
  55.  ************************************************************/
  56.  
  57. typedef struct _EzMEClassPart {
  58.   void (*highlight)();
  59.   void (*unhighlight)();
  60.   void (*notify)();    
  61.   XtPointer extension;
  62. } EzMEClassPart;
  63.  
  64. /* Full class record declaration */
  65. typedef struct _EzMEClassRec {
  66.     RectObjClassPart    rect_class;
  67.     SmeClassPart    sme_class;
  68.     SmeBSBClassPart  sme_bsb_class;
  69.     EzMEClassPart    ezme_class;
  70. } EzMEClassRec;
  71.  
  72. extern EzMEClassRec ezmeClassRec;
  73.  
  74. /* New fields for the EzME widget record */
  75. typedef struct {
  76.     /* resources */
  77.     char *action;
  78.     Widget toPopUp;
  79. } EzMEPart;
  80.  
  81. /****************************************************************
  82.  *
  83.  * Full instance record declaration
  84.  *
  85.  ****************************************************************/
  86.  
  87. typedef struct _EzMERec {
  88.   ObjectPart     object;
  89.   RectObjPart    rectangle;
  90.   SmePart     sme;
  91.   SmeBSBPart   sme_bsb;
  92.   EzMEPart     ezme;
  93. } EzMERec;
  94.  
  95. /************************************************************
  96.  *
  97.  * Private declarations.
  98.  *
  99.  ************************************************************/
  100. #endif /* _XawEzMEP_h */
  101.