46
45
/* New fields for the ScrollByLine widget class record */
48
int mumble; /* No new procedures */
47
int mumble; /* No new procedures */
49
48
} ScrollByLineClassPart;
51
50
/* Full class record declaration */
52
51
typedef struct _ScrollByLineClassRec {
53
CoreClassPart core_class;
52
CoreClassPart core_class;
54
53
SimpleClassPart simple_class;
55
54
ScrollByLineClassPart scrolled_widget_class;
56
55
} ScrollByLineClassRec;
60
59
/* New fields for the ScrollByLine widget record */
61
60
typedef struct _ScrollByLinePart {
62
Pixel foreground; /* The color for the forground of the text. */
63
Boolean force_vert, /* Must have scrollbar visable */
64
use_right; /* put scroll bar on right side of window. */
65
FILE * file; /* The file to display. */
66
Dimension indent; /* amount to indent the file. */
67
XFontStruct * bold_font, /* The four fonts. */
71
int h_width; /* Main font width */
61
Pixel foreground; /* The color for the foreground of the text. */
62
Boolean force_vert, /* Must have scrollbar visible */
63
use_right; /* put scroll bar on right side of window. */
64
FILE *file; /* The file to display. */
65
Dimension indent; /* amount to indent the file. */
66
XFontStruct *bold_font, /* The four fonts. */
70
int h_width; /* Main font width */
73
72
/* variables not in resource list. */
75
Widget bar; /* The scrollbar. */
76
int font_height; /* the height of the font. */
77
int line_pointer; /* The line that currently is at the top
78
of the window being displayed. */
79
Dimension offset; /* Drawing offset because of scrollbar. */
80
GC move_gc; /* GC to use when moving the text. */
81
GC bold_gc, normal_gc, italic_gc, symbol_gc; /* gc for drawing. */
74
Widget bar; /* The scrollbar. */
75
int font_height; /* the height of the font. */
76
int line_pointer; /* The line that currently is at the top
77
of the window being displayed. */
78
Dimension offset; /* Drawing offset because of scrollbar. */
79
GC move_gc; /* GC to use when moving the text. */
80
GC bold_gc, normal_gc, italic_gc, symbol_gc; /* gc for drawing. */
83
char ** top_line; /* The top line of the file. */
84
int lines; /* Total number of line in the file. */
85
int num_visible_lines; /* Number of lines visible */
82
char **top_line; /* The top line of the file. */
83
int lines; /* Total number of line in the file. */
84
int num_visible_lines; /* Number of lines visible */
86
85
} ScrollByLinePart;
88
87
/****************************************************************