source: trunk/athena/bin/xmore/ScrollByLineP.h @ 3319

Revision 3319, 3.0 KB checked in by probe, 34 years ago (diff)
changes.71#1024 - ANSI compliance - #endif comments should be in /* */
Line 
1/*
2 * xman - X window system manual page display program.
3 *
4 * $XConsortium: ScrollByLP.h,v 1.2 88/09/06 17:47:30 jim Exp $
5 * $Athena: ScrollByLP.h,v 4.0 88/08/31 22:11:21 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
21 */
22
23#ifndef _XtScrollByLinePrivate_h
24#define _XtScrollByLinePrivate_h
25
26#define DEFAULT_WIDTH 300
27#define DEFAULT_HEIGHT 200
28
29/***********************************************************************
30 *
31 * ScrollByLine Widget Private Data
32 *
33 ***********************************************************************/
34
35/* New fields for the ScrollByLine widget class record */
36typedef struct {
37     int mumble;   /* No new procedures */
38} ScrollByLineClassPart;
39
40/* Full class record declaration */
41typedef struct _ScrollByLineClassRec {
42    CoreClassPart       core_class;
43    CompositeClassPart  composite_class;
44    ScrollByLineClassPart scrolled_widget_class;
45} ScrollByLineClassRec;
46
47extern ScrollByLineClassRec scrollByLineClassRec;
48
49/* New fields for the ScrollByLine widget record */
50typedef struct _ScrollByLinePart {
51  Pixel foreground;             /* The color for the forground of the text. */
52  int inner_width, inner_height; /* The (viewable) size of the inner widget. */
53  Boolean force_bars,           /* Must have bars visable */
54    allow_horiz,                /* allow use of horizontal scroll bar. */
55    allow_vert,                 /* allow use of vertical scroll bar. */
56    use_bottom,                 /* put scroll bar on bottom of window. */
57    use_right;                  /* put scroll bar on right side of window. */
58  int lines;                    /* The number of lines in the text. */
59  int font_height;              /* the height of the font. */
60  XtCallbackList callbacks;     /* The callback list. */
61  Boolean key;                  /* which window will we size on
62                                   (TRUE == INNER). */
63
64/* variables not in resource list. */
65
66  int line_pointer;             /* The line that currently is at the top
67                                   of the window being displayed. */
68} ScrollByLinePart;
69
70
71/****************************************************************
72 *
73 * Full instance record declaration
74 *
75 ****************************************************************/
76
77typedef struct _ScrollByLineRec {
78    CorePart        core;
79    CompositePart   composite;
80    ScrollByLinePart  scroll_by_line;
81} ScrollByLineRec;
82
83#endif /* _XtScrollByLinePrivate_h */
84/* DON'T ADD STUFF AFTER THIS #endif */
Note: See TracBrowser for help on using the repository browser.