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 / EzMenu.h < prev    next >
C/C++ Source or Header  |  1991-02-19  |  3KB  |  91 lines

  1. /*
  2.  * $XConsortium: EzMenu.h,v 1.17 89/12/11 15:01:55 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.  * Author:  Chris D. Peterson, MIT X Consortium
  24.  */
  25.  
  26. /*
  27.  * EzMenu.h - Public Header file for EzMenu widget.
  28.  *
  29.  * This is the public header file for the Athena EzMenu widget.
  30.  * It is intended to provide one pane pulldown and popup menus within
  31.  * the framework of the X Toolkit.  As the name implies it is a first and
  32.  * by no means complete implementation of menu code. It does not attempt to
  33.  * fill the needs of all applications, but does allow a resource oriented
  34.  * interface to menus.
  35.  *
  36.  * Date:    April 3, 1989
  37.  *
  38.  * By:      Chris D. Peterson
  39.  *          MIT X Consortium 
  40.  *          kit@expo.lcs.mit.edu
  41.  */
  42.  
  43. #ifndef _EzMenu_h
  44. #define _EzMenu_h
  45.  
  46. #include <X11/Shell.h>
  47. #include <X11/Xmu/Converters.h>
  48. #include <X11/Xaw/SimpleMenu.h>
  49.  
  50. /****************************************************************
  51.  *
  52.  * EzMenu widget
  53.  *
  54.  ****************************************************************/
  55.  
  56. /* EzMenu Resources:
  57.  
  58.  Name             Class        RepType        Default Value
  59.  ----             -----        -------        -------------
  60.  background         Background        Pixel        XtDefaultBackground
  61.  backgroundPixmap    BackgroundPixmap    Pixmap          None
  62.  borderColor         BorderColor    Pixel        XtDefaultForeground
  63.  borderPixmap         BorderPixmap    Pixmap        None
  64.  borderWidth         BorderWidth    Dimension    1
  65.  bottomMargin        VerticalMargins    Dimension       VerticalSpace
  66.  columnWidth         ColumnWidth        Dimension       Width of widest text
  67.  cursor              Cursor             Cursor          None
  68.  destroyCallback     Callback        Pointer        NULL
  69.  height             Height        Dimension    0
  70.  label               Label              String          NULL (No label)
  71.  labelClass          LabelClass         Pointer         smeBSBObjectClass
  72.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  73.  rowHeight           RowHeight          Dimension       Height of Font
  74.  sensitive         Sensitive        Boolean        True
  75.  topMargin           VerticalMargins    Dimension       VerticalSpace
  76.  width             Width        Dimension    0
  77.  x             Position        Position    0n
  78.  y             Position        Position    0
  79.  
  80. */
  81.  
  82. typedef struct _EzMenuClassRec*    EzMenuWidgetClass;
  83. typedef struct _EzMenuRec*        EzMenuWidget;
  84.  
  85. #define XtNmenu "menu"
  86. #define XtCMenu "Menu"
  87.  
  88. extern WidgetClass ezMenuWidgetClass;
  89.  
  90. #endif /* _EzMenu_h */
  91.