[2136] | 1 | /* |
---|
[2137] | 2 | * xman - X window system manual page display program. |
---|
[2136] | 3 | * |
---|
[2137] | 4 | * $XConsortium: ScrollByL.h,v 1.2 88/09/06 17:47:28 jim Exp $ |
---|
| 5 | * $Athena: ScrollByL.h,v 4.0 88/08/31 22:11:16 kit Exp $ |
---|
| 6 | * |
---|
| 7 | * Copyright 1987, 1988 Massachusetts Institute of Technology |
---|
| 8 | * |
---|
| 9 | * Permission to use, copy, modify, and distribute this software and its |
---|
| 10 | * documentation for any purpose and without fee is hereby granted, provided |
---|
| 11 | * that the above copyright notice appear in all copies and that both that |
---|
| 12 | * copyright notice and this permission notice appear in supporting |
---|
| 13 | * documentation, and that the name of M.I.T. not be used in advertising or |
---|
| 14 | * publicity pertaining to distribution of the software without specific, |
---|
| 15 | * written prior permission. M.I.T. makes no representations about the |
---|
| 16 | * suitability of this software for any purpose. It is provided "as is" |
---|
| 17 | * without express or implied warranty. |
---|
| 18 | * |
---|
| 19 | * Author: Chris D. Peterson, MIT Project Athena |
---|
| 20 | * Created: December 5, 1987 |
---|
[2136] | 21 | */ |
---|
| 22 | |
---|
| 23 | #ifndef _XtScrollByLine_h |
---|
| 24 | #define _XtScrollByLine_h |
---|
| 25 | |
---|
| 26 | #define XtNlines "lines" |
---|
| 27 | #define XtCLine "line_class" |
---|
| 28 | #define XtNfontHeight "font_height" |
---|
| 29 | #define XtNformOnInner "form_on_inner" |
---|
| 30 | |
---|
| 31 | /*********************************************************************** |
---|
| 32 | * |
---|
| 33 | * ScrollByLine Widget (subclass of CompositeClass) |
---|
| 34 | * |
---|
| 35 | ***********************************************************************/ |
---|
| 36 | |
---|
| 37 | /* Class record constants */ |
---|
| 38 | |
---|
| 39 | extern WidgetClass scrollByLineWidgetClass; |
---|
| 40 | |
---|
| 41 | typedef struct _ScrollByLineClassRec *ScrollByLineWidgetClass; |
---|
| 42 | typedef struct _ScrollByLineRec *ScrollByLineWidget; |
---|
| 43 | |
---|
| 44 | typedef struct _ScrollByLineStruct { |
---|
| 45 | int location; /* The location so start writing text in the |
---|
| 46 | child window widget. */ |
---|
| 47 | int start_line; /* The line to start printing text. */ |
---|
| 48 | int num_lines; /* The number of lines to print. */ |
---|
| 49 | } ScrollByLineStruct; |
---|
| 50 | |
---|
| 51 | /* public routines */ |
---|
| 52 | |
---|
| 53 | extern Widget XtScrollByLineWidget(); /* the ScrollByLine Widget. */ |
---|
| 54 | /* Widget w; */ |
---|
| 55 | |
---|
| 56 | extern void XtResetScrollByLine(); |
---|
| 57 | /* Widget w; */ |
---|
| 58 | |
---|
[3319] | 59 | #endif /* _XtScrollByLine_h */ |
---|
[2136] | 60 | /* DON'T ADD STUFF AFTER THIS #endif */ |
---|