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

1.1       root        1: /*
                      2: * $Header: ScrollPrivate.h,v 1.4 87/09/11 21:24:28 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: typedef struct {
                     28:      /* public */
                     29:     Pixel        foreground;   /* thumb foreground color */
                     30:     XtOrientation orientation; /* horizontal or vertical */
                     31: /*    CallbackList  scroll_callbacks; /* smooth scroll */
                     32: /*    CallbackList  thumb_callbacks; /* jump scroll */
                     33:     XtCallbackProc  scrollProc;        /* smooth scroll */
                     34:     XtCallbackProc  thumbProc; /* jump scroll */
                     35:     caddr_t      closure;      /* client data */
                     36:     Pixmap       thumb;        /* thumb color */
                     37:     Cursor       upCursor;     /* scroll up cursor */
                     38:     Cursor       downCursor;   /* scroll down cursor */
                     39:     Cursor       leftCursor;   /* scroll left cursor */
                     40:     Cursor       rightCursor;  /* scroll right cursor */
                     41:     Cursor       verCursor;    /* scroll vertical cursor */
                     42:     Cursor       horCursor;    /* scroll horizontal cursor */
                     43:     float        top;          /* What percent is above the win's top */
                     44:     float        shown;        /* What percent is shown in the win */
                     45:      /* private */
                     46:     Cursor       inactiveCursor; /* The normal cursor for scrollbar */
                     47:     char         direction;    /* a scroll has started; which direction */
                     48:     GC           gc;           /* a (shared) gc */
                     49:     int                  topLoc;       /* Pixel that corresponds to top */
                     50:     int                  shownLength;  /* Num pixels corresponding to shown */
                     51: } ScrollbarPart;
                     52: 
                     53: 
                     54: typedef struct _ScrollbarRec {
                     55:     CorePart           core;
                     56:     ScrollbarPart      scrollbar;
                     57: } ScrollbarRec;
                     58: 
                     59: 
                     60: typedef struct {
                     61:      /* no new procedures */
                     62:     int dummy;
                     63: } ScrollbarClassPart;
                     64: 
                     65: 
                     66: typedef struct _ScrollbarClassRec {
                     67:     CoreClassPart              core_class;
                     68:     ScrollbarClassPart         scrollbar_class;
                     69: } ScrollbarClassRec;
                     70: 
                     71: /* end */

unix.superglobalmegacorp.com

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