Annotation of researchv9/X11/src/X.V11R1/lib/Xtk/Scroll.h, revision 1.1.1.1

1.1       root        1: /*
                      2: * $Header: Scroll.h,v 1.2 87/09/11 21:24:26 haynes Rel $
                      3: */
                      4: 
                      5: /*
                      6:  * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
                      7:  * 
                      8:  *                         All Rights Reserved
                      9:  * 
                     10:  * Permission to use, copy, modify, and distribute this software and its 
                     11:  * documentation for any purpose and without fee is hereby granted, 
                     12:  * provided that the above copyright notice appear in all copies and that
                     13:  * both that copyright notice and this permission notice appear in 
                     14:  * supporting documentation, and that the name of Digital Equipment
                     15:  * Corporation not be used in advertising or publicity pertaining to
                     16:  * distribution of the software without specific, written prior permission.  
                     17:  * 
                     18:  * 
                     19:  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
                     20:  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
                     21:  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
                     22:  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
                     23:  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
                     24:  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
                     25:  * SOFTWARE.
                     26:  */
                     27: #ifndef _XtScroll_h
                     28: #define _XtScroll_h
                     29: 
                     30: /****************************************************************
                     31:  *
                     32:  * Scrollbar Widget
                     33:  *
                     34:  ****************************************************************/
                     35: 
                     36: 
                     37: /* Parameters:
                     38: 
                     39:  Name          Class           RepType         Default Value
                     40:  ----          -----           -------         -------------
                     41:  Orientation   orientation     XtOrientation   XtorientHorizontal
                     42:  Width         width           int             1
                     43:  Height                height          int             1
                     44:  BorderWidth   borderwidth     int             1
                     45:  Border                color           pixel           Default foreground
                     46:  ScrollProc    function        function        No-op
                     47:  ThumbProc     function        function        No-op
                     48:  Parameter     parameter       parameter       0
                     49:  Foreground    color           pixel           Default foreground
                     50:  Background    color           pixel           Default background
                     51:  Thumb         pixmap          pixmap          Grey
                     52:  Top           fraction        float           0.0
                     53:  Shown         fraction        float           0.0
                     54: 
                     55: */
                     56: 
                     57: #ifndef _XtOrientation_e
                     58: #define _XtOrientation_e
                     59: 
                     60: typedef enum {XtorientHorizontal, XtorientVertical} XtOrientation;
                     61: #endif _XtOrientation_e
                     62: 
                     63: typedef struct _ScrollbarRec     *ScrollbarWidget;
                     64: typedef struct _ScrollbarClassRec *ScrollbarWidgetClass;
                     65: 
                     66: extern WidgetClass scrollbarWidgetClass;
                     67: 
                     68: extern void XtScrollBarSetThumb(); /* scrollBar, top, shown */
                     69: /* ScrollbarWidget scrollBar; */
                     70: /* float top, shown; */
                     71: 
                     72: extern Window XtScrollMgrCreate(); /* dpy, parent, args, argCount */
                     73: /* Display *dpy; */
                     74:     /* Window   parent;     */
                     75:     /* ArgList  args;    */
                     76:     /* int      argCount;   */
                     77: 
                     78: extern Window XtScrollMgrGetChild(); /* dpy, parent */
                     79: /* Display *dpy; */
                     80:     /* Window   parent;     */
                     81: 
                     82: extern Window XtScrollMgrSetChild(); /* dpy, parent, frame */
                     83: /* Display *dpy; */
                     84: /* Window parent, frame; */
                     85: 
                     86: extern XtScrollMgrSetThickness(); /* dpy, w, thickness */
                     87: /* Display *dpy; */
                     88:     /* Window w; */
                     89:     /* Int thickness; */
                     90: 
                     91: extern int XtScrollMgrGetThickness(); /* dpy, w */
                     92: /* Display *dpy; */
                     93:     /* Window w; */
                     94: 
                     95: extern Window XtScrollMgrAddBar(); /* dpy, parent, args, argCount */
                     96: /* Display *dpy; */
                     97:     /* Window   parent;     */
                     98:     /* ArgList  args;    */
                     99:     /* int      argCount;   */
                    100: 
                    101: extern int XtScrollMgrDeleteBar(); /* dpy, parent, scrollbar */
                    102: /* Display *dpy; */
                    103:     /* Window parent, scrollbar; */
                    104: 
                    105: extern Window XtScrolledWindowCreate(); /* dpy, parent, args, argCount */
                    106: /* Display *dpy; */
                    107:     /* Window   parent;     */
                    108:     /* ArgList  args;    */
                    109:     /* int      argCount;   */
                    110: 
                    111: extern void XtScrolledWindowSetChild(); /* dpy, parent, child */
                    112: /* Display *dpy; */
                    113:     /* Window parent, child; */
                    114: 
                    115: extern Window XtScrolledWindowGetFrame(); /* dpy, parent */
                    116: /* Display *dpy; */
                    117:     /* Window parent; */
                    118: 
                    119: extern Window XtUnmakeScrolledWindow(); /* dpy, parent */
                    120: /* Display *dpy; */
                    121:     /*  Window parent; */
                    122: 
                    123: #endif _XtScroll_h
                    124: /* 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.