|
|
1.1 ! root 1: /* $Header: Scroll.h,v 1.1 87/09/11 07:59:58 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 _XtScroll_h ! 30: #define _XtScroll_h ! 31: ! 32: /**************************************************************** ! 33: * ! 34: * Scrollbar Widget ! 35: * ! 36: ****************************************************************/ ! 37: ! 38: ! 39: /* Parameters: ! 40: ! 41: Name Class RepType Default Value ! 42: ---- ----- ------- ------------- ! 43: Window window window create window ! 44: Orientation orientation XtOrientation XtorientHorizontal ! 45: ClientWindow window window parent window ! 46: Width width int 1 ! 47: Height height int 1 ! 48: BorderWidth borderwidth int 1 ! 49: Border color pixel Default foreground ! 50: ScrollUpDownProc function function No-op ! 51: ThumbProc function function No-op ! 52: Foreground color pixel Default foreground ! 53: Background color pixel Default background ! 54: Thumb pixmap pixmap Grey ! 55: Top fraction float 0.0 ! 56: Shown fraction float 0.0 ! 57: ! 58: */ ! 59: ! 60: #ifndef _XtOrientation_e ! 61: #define _XtOrientation_e ! 62: #define XtNcustomthumb "customthumb" ! 63: ! 64: typedef enum {XtorientHorizontal, XtorientVertical} XtOrientation; ! 65: #endif _XtOrientation_e ! 66: ! 67: extern Window XtScrollBarCreate(); /* dpy, parent, args, argCount */ ! 68: /* Display *dpy; */ ! 69: /* Window parent; */ ! 70: /* ArgList args; */ ! 71: /* int argCount; */ ! 72: ! 73: extern void XtScrollBarDestroy(); /* dpy, scrollbarWindow */ ! 74: /* Display *dpy; */ ! 75: /* Window scrollbarWindow; */ ! 76: ! 77: extern void XtScrollBarSetThumb(); /* dpy, scrollbarWindow, top, shown */ ! 78: /* Display *dpy; */ ! 79: /* Window scrollbarWindow; */ ! 80: /* float top, shown; */ ! 81: ! 82: extern Window XtScrollMgrCreate(); /* dpy, parent, args, argCount */ ! 83: /* Display *dpy; */ ! 84: /* Window parent; */ ! 85: /* ArgList args; */ ! 86: /* int argCount; */ ! 87: ! 88: extern Window XtScrollMgrGetChild(); /* dpy, parent */ ! 89: /* Display *dpy; */ ! 90: /* Window parent; */ ! 91: ! 92: extern Window XtScrollMgrSetChild(); /* dpy, parent, frame */ ! 93: /* Display *dpy; */ ! 94: /* Window parent, frame; */ ! 95: ! 96: extern int XtScrollMgrDestroy(); /* dpy, w */ ! 97: /* Display *dpy; */ ! 98: /* Window w; */ ! 99: ! 100: extern XtScrollMgrSetThickness(); /* dpy, w, thickness */ ! 101: /* Display *dpy; */ ! 102: /* Window w; */ ! 103: /* Int thickness; */ ! 104: ! 105: extern int XtScrollMgrGetThickness(); /* dpy, w */ ! 106: /* Display *dpy; */ ! 107: /* Window w; */ ! 108: ! 109: extern Window XtScrollMgrAddBar(); /* dpy, parent, args, argCount */ ! 110: /* Display *dpy; */ ! 111: /* Window parent; */ ! 112: /* ArgList args; */ ! 113: /* int argCount; */ ! 114: ! 115: extern int XtScrollMgrDeleteBar(); /* dpy, parent, scrollbar */ ! 116: /* Display *dpy; */ ! 117: /* Window parent, scrollbar; */ ! 118: ! 119: extern Window XtScrolledWindowCreate(); /* dpy, parent, args, argCount */ ! 120: /* Display *dpy; */ ! 121: /* Window parent; */ ! 122: /* ArgList args; */ ! 123: /* int argCount; */ ! 124: ! 125: extern void XtScrolledWindowSetChild(); /* dpy, parent, child */ ! 126: /* Display *dpy; */ ! 127: /* Window parent, child; */ ! 128: ! 129: extern Window XtScrolledWindowGetFrame(); /* dpy, parent */ ! 130: /* Display *dpy; */ ! 131: /* Window parent; */ ! 132: ! 133: extern Window XtUnmakeScrolledWindow(); /* dpy, parent */ ! 134: /* Display *dpy; */ ! 135: /* Window parent; */ ! 136: ! 137: ! 138: extern void XtScrollBarSetValues(); /* dpy, window, args, argCount */ ! 139: /* Display *dpy; */ ! 140: /* Window window; */ ! 141: /* ArgList args; */ ! 142: /* int argCount; */ ! 143: ! 144: extern void XtScrollBarGetValues(); /* dpy, window, args, argCount */ ! 145: /* Display *dpy; */ ! 146: /* Window window; */ ! 147: /* ArgList args; */ ! 148: /* int argCount; */ ! 149: ! 150: #endif _XtScroll_h ! 151: /* DON'T ADD STUFF AFTER THIS #endif */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.