Annotation of researchv9/X11/src/X.V11R1/lib/oldXtk/Menu.h, revision 1.1

1.1     ! root        1: /* $Header: Menu.h,v 1.1 87/09/11 07:59:32 toddb Exp $ */
        !             2: /*
        !             3:  *     sccsid: %W%     %G%
        !             4:  */
        !             5: 
        !             6: /*
        !             7:  * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
        !             8:  * 
        !             9:  *                         All Rights Reserved
        !            10:  * 
        !            11:  * Permission to use, copy, modify, and distribute this software and its 
        !            12:  * documentation for any purpose and without fee is hereby granted, 
        !            13:  * provided that the above copyright notice appear in all copies and that
        !            14:  * both that copyright notice and this permission notice appear in 
        !            15:  * supporting documentation, and that the name of Digital Equipment
        !            16:  * Corporation not be used in advertising or publicity pertaining to
        !            17:  * distribution of the software without specific, written prior permission.  
        !            18:  * 
        !            19:  * 
        !            20:  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
        !            21:  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
        !            22:  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
        !            23:  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
        !            24:  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
        !            25:  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
        !            26:  * SOFTWARE.
        !            27:  */
        !            28: 
        !            29: #ifndef _XtMenu_h
        !            30: #define _XtMenu_h
        !            31: 
        !            32: /****************************************************************
        !            33:  *
        !            34:  * Basic Menu Widget
        !            35:  *
        !            36:  ****************************************************************/
        !            37: 
        !            38: 
        !            39: /*
        !            40:  Parameters
        !            41:  ==========
        !            42: 
        !            43:  Name          Class           RepType         Default Value
        !            44:  ----          -----           -------         -------------
        !            45:  Window                window          Window          <Created>
        !            46:  Width         int             int             1
        !            47:  Height                int             int             1
        !            48:  Orientation   orientation     XrmAtom         vertical
        !            49:  BorderWidth   int             int             1
        !            50:  Border                color           Pixmap          BlackPixel
        !            51:  Background    color           Pixmap          WhitePixel
        !            52:  InternalWidth int             int             2
        !            53:  InternalHeight        int             int             2
        !            54:  Space         space           int             1
        !            55:  Function      function        function        <built-in debug function>
        !            56:  Parameter     pointer         caddr_t         0
        !            57:  Notify                int             int             0
        !            58: 
        !            59:  Parameters for XtAddMenuEntry():
        !            60:  ================================
        !            61: 
        !            62:  Name          Class           RepType         Default Value
        !            63:  ----          -----           -------         -------------
        !            64:  MenuEntry     menuentry       XtMenuEntry     <none>
        !            65: 
        !            66: 
        !            67: 
        !            68: The callback function should look like:
        !            69: 
        !            70: void function(tag)
        !            71: caddr_t tag;
        !            72: {
        !            73: }
        !            74: 
        !            75: */
        !            76: 
        !            77: #ifndef _XtOrientation_e
        !            78: #define _XtOrientation_e
        !            79: typedef enum {XtorientHorizontal, XtorientVertical} XtOrientation;
        !            80: #endif _XtOrientation_e
        !            81: 
        !            82: #define XtNwindow              "window"
        !            83: #define XtNx                   "x"
        !            84: #define XtNy                   "y"
        !            85: #define XtNwidth               "width"
        !            86: #define XtNheight              "height"
        !            87: #define XtNorientation         "orientation"
        !            88: #define XtNborderWidth         "borderWidth"
        !            89: #define XtNborder              "border"
        !            90: #define XtNbackground          "background"
        !            91: #define XtNinternalWidth       "internalWidth"
        !            92: #define XtNinternalHeight      "internalHeight"
        !            93: #define XtNspace               "space"
        !            94: #define XtNnotify              "notify"
        !            95: #define XtNparameter           "parameter"
        !            96: #define XtNmenuEntry           "menuEntry"
        !            97: 
        !            98: 
        !            99: typedef struct {
        !           100:     Window index;      /* insert w in front of this window; NULL=append*/
        !           101:     Window w;          /* window id of entry to be added */
        !           102: } XtMenuEntry, *XtMenuEntryPtr;
        !           103: 
        !           104: extern Window XtMenuCreate(); /* dpy, parent, args, argCount */
        !           105:     /* Display *dpy; */
        !           106:     /* Window   parent;     */
        !           107:     /* ArgList  args;    */
        !           108:     /* int      argCount;   */
        !           109: 
        !           110: extern XtStatus XtMenuAddEntry(); /* dpy, parent, args, argCount */
        !           111:     /* Display *dpy; */
        !           112:     /* Window   parent;     */
        !           113:     /* ArgList  args;    */
        !           114:     /* int      argCount;   */
        !           115: 
        !           116: extern XtStatus XtMenuDeleteEntry(); /* dpy, parent, args, argCount */
        !           117:     /* Display *dpy; */
        !           118:     /* Window   parent;     */
        !           119:     /* ArgList  args;    */
        !           120:     /* int      argCount;   */
        !           121: 
        !           122: /*
        !           123:  * Note: The following default menu geometry manager is provided as an
        !           124:  * aid to prototyping pop-up menus.  It says "XtgeometryYes" to everything.
        !           125:  * Clients should replace this with their own geometry manager as
        !           126:  * necessary.
        !           127:  */
        !           128: extern XtGeometryReturnCode XtMenuGeometryManager();
        !           129:     /* dpy,w,req,reqBox,repBox */
        !           130:     /* Display *dpy; */
        !           131:     /* Window w; */    /* window requesting geometry change */
        !           132:     /* XtGeometryRequest req; */       /* ignored, but must be present */
        !           133:     /* WindowBox *reqBox, *RepBox; */ /* size boxes for request */
        !           134: 
        !           135: extern void XtMenuGetValues (); /* dpy, window, args, argCount */
        !           136:     /* Display *dpy; */
        !           137:     /* Window window; */
        !           138:     /* ArgList args; */
        !           139:     /* int argCount; */
        !           140: 
        !           141: extern void XtMenuSetValues (); /* dpy, window, args, argCount */
        !           142:     /* Display *dpy; */
        !           143:     /* Window window; */
        !           144:     /* ArgList args; */
        !           145:     /* int argCount; */
        !           146: 
        !           147: #endif _XtMenu_h
        !           148: /* DON'T ADD STUFF AFTER THIS #endif */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.